0% found this document useful (0 votes)
142 views4 pages

ER and Normalization

The document describes an entity relationship diagram for a railway reservation system that includes entities for customers, reservations, and trains. The key entities are connected by relationships such as customers making reservations on trains and reservations being for specific trains.

Uploaded by

vrushali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views4 pages

ER and Normalization

The document describes an entity relationship diagram for a railway reservation system that includes entities for customers, reservations, and trains. The key entities are connected by relationships such as customers making reservations on trains and reservations being for specific trains.

Uploaded by

vrushali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Entity Relationship Diagram

Railway Reservation System


Customer Relationship Management
3. All Non-key attributes are fully functionally dependent on primary key. If primary is not
composite key then all non key attributes are fully functionally dependent on primary key.

We will see that there is composite key as{ Employee No, Department No}.Employee No is
dependent on Employee Name and Department is dependent on Department No. We can split the
above table into 2 different tables:

Table 1:Employee_NO table

Employee No Department No Employee Name

1 101 Amit

2 102 Divya

3 101 Rama

5 102 Ajai

6 103 Venkat

Table 2: Department table

Department No Department

101 OBIEE

102 COGNOS

103 Testing
Q.1) Examine the table shown below.

branchNo branchAddress telNos

B001 8 Jefferson Way, Portland, OR 503-555-3618, 503-555-2727,


97201 503-555-6534

B002 City Center Plaza, Seattle, WA 206-555-6756, 206-555-8836


98122

B003 14 – 8th Avenue, New York, 212-371-3000


NY 10012

B004 16 – 14th Avenue, Seattle, 555-3131, 206-555-4112


WA 98128

(a) Why is this table not in 1NF?


(b) Describe and illustrate the process of normalizing the data shown in this table to third
normal form (3NF).
(c) Identify the primary, alternate and foreign keys in your 3NF relations.

Q.2) Examine the table shown below

staffNo s branchNo branchAddres name position hoursPerWeek

S4555 B002 City Center Plaza, Ellen Layman Assistant 16


Seattle, WA 98122

S4555 B004 16 – 14th Avenue, Ellen Layman Assistant 9


Seattle, WA 98128

S4612 B002 City Center Plaza, Dave Sinclair Assistant 14


Seattle, WA 98122

S4612 B004 16 – 14th Avenue, Dave Sinclair Assistant 10


Seattle, WA 98128

(a) Why is this table not in 2NF?


(b) Describe and illustrate the process of normalizing the data shown in this table to third
normal form (3NF).
(c) Identify the primary and foreign keys in your 3NF relations

You might also like