Professional Documents
Culture Documents
Online Course Recommend System
Online Course Recommend System
Online Course Recommend System
MINI PROJECT
REPORT ON
“ONLINE COURSE
REGISTRATION SYSTEM”
Of
Database Management System Lab
SUBMITTED BY:
1. Jewel Chowdhury
( RA2111003011057)
2. Talla Kumar Sai Gowd
( RA2111003011058)
UNDER THE GUIDANCE OF
Dr.B.Muruganantham
(Associate Professor, Department of Computing Technologies)
BONAFIDE CERTIFICATE
SIGNATURE
Dr.B.Murugantham,
Associate Professor,
It contains:
a. Students and their functionalities which involves registration of the course(s)
through the registrar, being taught by the professors and advised/managed by
the faculty advisor.
b. Professors and their functionalities which involves teaching the student(s) and
being in constant contact with the faculty advisor for issues related to the
students or course management.
c. Registrar and the function of helping student(s) to register for courses they wish
to enroll in.
d. Faculty advisor who has access to the course(s) being undertaken by the
students and the professors handling the mentioned courses.
SCOPE
At the beginning of each semester students may request a course catalogue
containing a list of course offerings for the semester. Information about each
course, such as professor, department, and prerequisites will be included to help
students make informed decisions.
The new course registration system will allow students to select courses for the
coming semester. No course offering will have more than 30 students. No course
offering will have fewer than 5 students.
Once the registration process is completed for a student, the registration system
sends information to the billing system, so the student can be billed for the
semester.
The class provides getter and setter methods for all the instance variables,
allowing clients to retrieve or update the registration information as needed.
Note that this class does not include any methods for actually registering for an
course or processing the registration. It simply stores the registration information.
The student portal class represents a student who is registering for an exam. It
has private instance variables for student name, course code, and registrations.
The registrations variable is a list of Registration objects that the student has
registered for. The student class provides getter and setter methods for all the instance
variables, allowing clients to retrieve or update the student information as needed. It also
provides methods to add and remove registrations, as well as
retrieve the list of registrations.
Enrolled Course
The enrolled Course class represents a course that a student can enroll in. It has private
instance variables for courseID, name, and instructor. The courseID variable is used to
uniquely identify the course. The Course class provides getter and setter methods for all
the instance variables, allowing clients to retrieve or update the course information as
needed.
The Registration class now includes a private instance variable for courses, which is a list
of Course objects representing the courses that the student is enrolled in for the
registration. It provides setter and getter methods for the course’s variable, as well as
methods to add or remove courses from the list.
By introducing the Course class and adding the appropriate relationships, we can now
incorporate course enrollment functionality into the exam registration system. The system
can allow students to browse available courses, select courses to enroll in, and view their
enrolled courses for each registration. The student portal can provide a user interface for
students to manage their course enrollments, view course schedules and descriptions, and
update their course information as needed.
USE CASE DIAGRAM
ER DIAGRAM
NORMALISATION OF DATABASE:
1. Creating A Table: The Create Table command is used to create a table in the
database. It consists of rows and columns. Each column has a minimum of three
attributes- a name, a data type, and size.
Syntax: -
Create table <Table Name> (
<ColumnName1> <Data Type>(<Size>),
<ColumnName2> <Data Type>(<Size>), ………..
<Column Name n> <Data Type>(<Size>));
2. Inserting Data: The Insert into Table command is used to load the created table
with data to be manipulated later.
Syntax: -
Insert into <table name>(<col1>, <col2>,…..,<col n>)
values (<expression1>, <expression2> ,..,<expression3>);
3. Viewing Data: This command is used to view all the rows and columns of the
table created in the database.
Syntax: -
Select * from <table name>;
4. Eliminating Duplicate Rows: A table could hold duplicate rows from display.
This could be removed by using DISTINCT clause.
Syntax: -
Select Distinct <col name1>, <col name2> from <table name>;
5. Creating A Table from A Table: To create a copy of existing table with create
table and select statements.
Syntax: -
Create Table <Table Name> (<ColumnName1>, <ColumnName2>,…)
as select <colname1>, <colname2>,….
From <existing table name>;
6. Inserting Data into A Table from Another Table: To filter the data that is not
required
Syntax: -
Insert into <table name>
Select <col name1>, <col name2>….
from <table name>;
7. Updating records of a table: Modify existing rows with the UPDATE statement.
Update more than one row at a time, if required. All rows in the table are
modified if you omit the WHERE clause
Syntax: -
UPDATE table SET column = value, column = value, ....
WHERE condition;
8. Delete records: You can remove existing rows from a table by using the DELETE
statement. All rows in the table are deleted if you omit the WHERE clause.
Syntax: -
DELETE FROM table WHERE condition;
9. Truncating Tables: Truncate Tables empties the table completely. Once the
data deleted cannot be retrieved.
Syntax: -
Truncate Table <table name>;
10. Destroying Tables: Sometimes table in the database becomes obsolete and
need to be discarded, so we use drop table command.
Syntax: -
Drop table <table name>;
CODE DOCUMENTATION:
create table prof (
pname varchar(30),
p_id int,
p_email varchar(30));
1. Open AWS CloudShell and select the region where you want to create the table.
You can choose the region from the dropdown menu in the top-right corner of the
CloudShell window.
2. Launch the AWS CLI terminal in CloudShell by clicking on the "Open
Terminal" button in the top-right corner of the CloudShell window.
3. Create a JSON file with the table schema. For example, create a file named
table_schema.json with the following contents:
JSON - Using a JSON document database, you can store each user's profile efficiently by
storing only the attributes that are specific to each user.
EX: echo '{
"TableName": "my_table",
"KeySchema": [
{
"AttributeName": "my_partition_key",
"KeyType": "HASH"
},
{
"AttributeName": "my_sort_key",
"KeyType": "RANGE"
}
],
"AttributeDefinitions": [
{
"AttributeName": "my_partition_key",
"AttributeType": "S"
},
{
"AttributeName": "my_sort_key",
"AttributeType": "N"
}
],
"BillingMode": "PAY_PER_REQUEST"
}' > table_schema.json
To add data:
Use the ‘aws dynamodb put-item’ command to add the item to the table. Run the
following command:
aws dynamodb put-item --table-name my_table --item file://item.json
Verify that the item has been added by using the aws dynamodb get-item command.
Run the following command:
aws dynamodb get-item --table-name my_table --key '{"my_partition_key": {"S":
"my_partition_key_value"}, "my_sort_key": {"N": "1"}}'
You can add more items by repeating the steps above with different data in the ‘ item.json’ file.
Scanning a table for all items:
This command scans the my_table table and returns all items in the table
aws dynamodb scan --table-name my_table
If the table has many items, you may need to paginate the results to retrieve all items. To do
this, add the --page-size parameter to the aws dynamodb scan command and specify the
maximum number of items to retrieve per page. For example, to retrieve 100 items per page,
run the following command:
Run the aws dynamodb scan command with the --table-name parameter to specify the name of
the table you want to scan, and the --projection-expression parameter to specify the attributes
you want to include in the scan. For example, to scan a table named my_table and include
only the attribute1 and attribute2 attributes in the results, run the following command:
Page: 1
SCREENSHOT
TABLE: STUDENT
TABLE: REGISTRAR
TABLE: PROFESSOR
Page: 2
TABLE: COURSES
TABLE: ADVISOR
Page: 3
References
[3] S.X. Sa, and S. Wang, Introduction to Database System. Higher Education Press,
Beijing, 2002.
Page: 4