Date post: | 14-Apr-2018 |
Category: |
Documents |
Upload: | naresh-yadav |
View: | 214 times |
Download: | 0 times |
of 16
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
1/16
RAILWAY RESERVATION SYSTEMRDBMS
SUBMITTED BY:Drishey Valecha
Satyendra Singh Verma
Shubham Pratap Singh
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
2/16
2
MINI WORLD
A train has various routes all over India which are connecting various cities in India. There
are different types of categories of trains such as Superfast, Mail/Express or Luxury. Each
train has many employees.
Every train has various classes such as General, Sleeper, 3AC, 2AC, 1AC. Different
classes has different fares. For travelling through trains, each train requires a ticket.
A user registers themselves on an online reservation system. A user buys ticket from an
online reservation system through an unique id provided to them. A user may also buy atour package.
Various tour packages may be sold to the passengers by an employee. There are different
trains for the tours.
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
3/16
ENTITY SETS
3
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
4/16
4
ENTITY SET : User
Sr. No. Name of
Attributes
Domain
Type
Details/
Constraints
(Key)
Simple/Comp
osite
Single/Mu
ltivalued
1 UID Text(8) Primary Key Simple Single2 UName Text(50) NK Simple Single
3 UGender Text(1) NK Simple Single
4 UDOB Date/Time NK Simple Single
5 UAddress Text(50) NK Simple Multivalued
6 UMobileNo Text(10) AK Simple Multivalued
7 UEmail Text(50) AK Simple Single
8 UPassword Text(10) NK Simple Single
9 TiPNR Text(50) AK Simple Multivalued
10 PID Text(50) AK Simple
Multivalued
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
5/16
5
ENTITY SET : Train
Sr. No. Name of
Attributes
Domain
Type
Details/
Constraints
(Key)
Simple/Compo
site
Single/Mul
tivalued
1 TrID Text(5) Primary Key Simple Single
2 TrName Text(25) AK Simple Single
3 TrDeptFrom Text(10) NK Simple Single
4 TrDeptTime Date/Time NK Simple Single
5 TrDestination Text(10) NK Simple Single
6 TrDistance Number(De
cimal)
NK Simple Single
7 TrArrTime Date/Time NK Simple Single
8 TrType Text(15) NK Simple Single
9 TrPlacesof
Travel
Text(25) NK Simple Multivalued
10 EmpID Text(50) AK Simple
Multivalued
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
6/16
6
ENTITY SET : Ticket
Sr. No. Name of
Attributes
Domain
Type
Details/
Constraints
(Key)
Simple/Comp
osite
Single/M
ultivalued
1 TiPNR Text(9) Primary Key Simple Single
2 TrID Text(5) AK Simple Single
3 UID Text(8) AK Simple Single
4 TiPassName,
Age,Sex
Text(100) NK Simple Multivalued
5 TiClass Text(10) NK Simple Single
6 TiSeatNo Text(20) AK Simple Multivalued
7 TiFare Number(Decimal) NK Simple
Single
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
7/16
7
ENTITY SET : Package
Sr. No. Name of
Attributes
Domain
Type
Details/
Constraints
(Key)
Simple/Com
posite
Single/M
ultivalue
d
1 PID Text(8) Primary Key Simple Single
2 Pname Text(10) AK Simple Single
3 TrID Text(5) AK Simple Single
4 Pfrom Text(10) NK Simple Single
5 Pfare Number(D
ecimal)
NK Simple Single
6 Pduration Text(10) NK Simple Single
7 EmpID Text(8) AK Simple Single
8 UID Text(8) AK Simple Single
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
8/16
8
ENTITY SET : Employee
Sr. No. Name of
Attributes
Domain
Type
Details/
Constraints
(Key)
Simple/Comp
osite
Single/M
ultivalued
1 EmpID Text(8) Primary Key Simple Single
2 EmpName Text(50) NK Simple Single
3 TrID Text(5) AK Simple Single
4 EmpSalary Number(De
cimal)
NK Simple Single
5 EmpPost Text(50) NK Simple Single
6 PID Text(50) AK Simple Multivalued
7 UID Text(50) AK Simple Multivalued
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
9/16
ENTITY SET : UserPackages
9
Sr. No. Name of
Attributes
Domain
Type
Details/
Constraints
(Key)
Simple/Comp
osite
Single/M
ultivalued
1 SrNo Text(5) Primary Key Simple Single
2 UserId Text(8) FK Simple Single
3 PackageId Text(8) FK Simple Single
4 Date_Of_Trav
el
Date/Time NK Simple Single
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
10/16
RELATIONSHIPS
10
Sr.No. Entity Set 1 Entity Set 2 Relationship
Name
Cardinality
(1:1/1:M/M:N)
Participation
Total/Partial
ES1 ES2
1 User Ticket Buys 1:M Total Total
2 User Package Buy M:N Parti
al
Total
3 Train Ticket Requires 1:M Total Total
4 Train Employee Has 1:M Total Partial
5 Employee Package Sold 1:M Parti
al
Total
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
11/16
E-R DIAGRAM
C:\Users\SATYENDRA SINGH\Documents\ER Diagram-rail
reservation.docx
11
http://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docxhttp://c/Users/SATYENDRA%20SINGH/Documents/ER%20Diagram-rail%20reservation.docx7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
12/16
RELATIONAL MODEL
Model proposed by E.F. Codd in 1970.
Based on Mathematical Relation and Set Theory.
The main aim of this model is to remove repetition of data.
Carried out by insertion , modification and deletion of data.
12
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
13/16
MAPPING E-R MODEL TO A
LOGICAL DESIGN
For each Entity Set in the ER diagram , create a separate table.
For each 1:1 relationship, Keep the column in the table that has Total Participation andremove that has partial participation
For each 1:M relationship, Delete the column from the table that is on the M side.
For each M:N relationship, create a new table.
13
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
14/16
DATABASE DESIGN PROCESS
14
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
15/16
SQL
SQL: Structured Query Language.
Standard language for all RDBMS softwares.
Data Definition Language (DDL): Creates the tables, alters the structure of the table, delete
the table.
Data Manipulation Language (DML): To insert, update (modify/edit), search (select) and
delete data in a table.
15
7/27/2019 RDBMS- its the study of organisation community or place along with it`s landmarks it gives full idea about environment of the objective
16/16
THANK YOU
16