DMS K Scheme report
DMS K Scheme report
The primary aim of this microproject is to design and implement a functional database system that manages
railway ticket bookings efficiently. The project aims to develop students' understanding of:
Benefits:
1. Entities of database and their attributes along with data types were identified
2. Development of schema diagram based on entities and attributes.
3. Creation of a relational database by creating tables with minimum 5 records.
4. DDL commands like alter, rename, truncate and drop on a single table was executed
5. Enforcement of Parent-Child Relationship (Foreign Key) on two tables from the database.
6. DML commands like select, insert, update, delete was performed on a single table.
7. Aggregate functions and JOIN Clause were implemented on the table
8. Advanced SQL (VIEW) & PL/SQL (Cursor) were implemented respectively.
9. DCL commands like grant and revoke was successfully executed.
5.0 Actual resources used:
Sr. no Name of resources / Specifications Quantity
material
1. Computer System Windows 10, 4GB RAM 1
2. MySQL Software Database 1
Management Software
3. Oracle 10g Express Version 8.0 1
Edition
2. Schema Structure:
Entities Attributes
Passenger info PID
P_name
P_gender
P_age
P_addr
P_contact
Bill BID
B_date
Total
PID
Ticket_number
Ticket info Ticket_number
Ticket_type
Ticket_price
Train_number
Train info Train_number
T_name
D_location
D_time
D_date
A_location
Route info RID
R_name
No_of_stops
3. Schema Diagram:
4. DDL:
1) Create-
This command is used to create the database or its objects (like table, index, function, views, store
procedure and triggers.
2) Alter-
This is used to alter the structure of the database.
3) Rename-
This is used to rename an object existing in the database.
5. DML:
1) Select-
6. DCL:
1) Grant-
It is used to give access or privilege to a specific database user.
2) Revoke-
It is used to take back the access or privilege given to a specific database user.
7. TCL:
1) Commit-
It ends the current transaction and makes permanent changes to transaction.
2)Rollback-
3)Savepoint-