0% found this document useful (0 votes)
259 views5 pages

Normalization Airlines

The document describes the normalization of several tables to first, second, and third normal forms. Each table is analyzed and determined to already be in 1NF, 2NF and 3NF since all attributes are atomic, fully dependent on primary keys, and have no transitive dependencies. The tables include USERS, ADMIN, AIRPORTS, PLANES, FLIGHTS, TAKEN_BY, STOPS_AT, MANAGES, and BOOKS.

Uploaded by

Rishab Ramesh
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)
259 views5 pages

Normalization Airlines

The document describes the normalization of several tables to first, second, and third normal forms. Each table is analyzed and determined to already be in 1NF, 2NF and 3NF since all attributes are atomic, fully dependent on primary keys, and have no transitive dependencies. The tables include USERS, ADMIN, AIRPORTS, PLANES, FLIGHTS, TAKEN_BY, STOPS_AT, MANAGES, and BOOKS.

Uploaded by

Rishab Ramesh
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/ 5

USER_ID NAME ADDRESS AGE

1 ROHITH G R BANGALORE 21
2 RISHAB R MYSORE 22
NORMALIZATION OF USERS:

USER_ID NAME

USER_ID ADDRESS

USER_ID AGE

First Normal Form

In USERS, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since every non key attribute is fully dependent on primary key.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

NORMALIZATION OF ADMIN
ADMIN_I NAME
D
10 ROHAN R
11 SATYAM S
ADMIN_ID NAME

First Normal Form

In ADMIN, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since every non key attribute is fully dependent on primary key.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

AIRPORT_CODE AIRPORT_NAME CITY


100 RAJIV GANDHI INTERNATIONAL HYDERABAD
AIRPORT
101 BANGALORE INTERNATIONAL BANGALORE
AIRPORT
NORMALIZATION OF AIRPORTS
AIRPORT_CODE AIRPORT_NAME

AIRPORT_CODE CITY

First Normal Form

In AIRPORTS, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since every non key attribute is fully dependent on primary key.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

PLANE_ID AIRLINES_NAME TOTAL_ECONOMY TOTAL_BUSINESS TOTAL_FIRSTCLAS


SEATS SEATS S SEATS
AirIndia01 AirIndia 50 30 20
SpiceJet01 SpiceJet 100 75 50
NORMALIZATION OF PLANES

PLANE_ID AIRLINES_ID

PLANE_ID TOTAL_ECONOMY SEATS

PLANE_ID TOTAL_BUSINESS _SEATS

PLANE_ID TOTAL_FIRSTCLASS_SEATS

First Normal Form

In PLANES, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since every non key attribute is fully dependent on primary key.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

FLIGH SOURCE DESTINA STO HALT_ST DEPARTURE DEPARTURE ARRIVAL_ ARRIVAL_


T_ID TION PS ATION _TIME _DATE TIME DATE
48 BANGA HYDERA 0 NONE 4:30 PM 16/1/2021 6:00PM 16/1/202
LORE BAD 1
51 MUMB BANGAL 1 HYDERAB 6:00AM 17/1/2021 9:00AM 17/1/202
AI ORE AD 1
NORMALIZATION OF FLIGHTS

FLIGHT_ID SOURCE

FLIGHT_ID DESTINATION

FLIGHT_ID STOPS

FLIGHT_ID HALT_STATION

FLIGHT_ID DEPARTURE_TIME

FLIGHT_ID DEPARTURE_DATE

FLIGHT_ID ARRIVAL_TIME

FLIGHT_ID ARRIVAL_DATE

First Normal Form

In FLIGHTS, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since every non key attribute is fully dependent on primary key.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

NORMALIZATION OF TAKEN_BY
FLIGHT_ID PLANE_ID
48 AirIndia01
51 SpiceJet01

First Normal Form

In TAKEN_BY, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since there is no non key attribute.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

NORMALIZATION OF STOPS_AT
FLIGHT_ID AIRPORT_ID
48 100
51 101
First Normal Form

In USERS, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since there is no non key attribute.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

ADMIN_ID AIRPORT_ID PLANE_ID FLIGHT_ID


10 100 AirIndia01 48
11 101 Spicejet01 51
NORMALIZATION OF MANAGES

First Normal Form

In USERS, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since there is no non key attribute.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

BOOKING_ID USER_ID FLIGHT_ID TYPE OF IDENTITY NO NO OF NO OF TOTAL


IDENTITY ADULTS INFANTS FARE
1001 1 48 AADHAR 132457689421 2 1 5000
CARD
1002 2 51 PAN 125436732467 1 0 1500
CARD
NORMALIZATION OF BOOKS

BOOKING_ID,USER_ID ,FLIGHT_ID TYPE_OF_IDENTITY

BOOKING_ID, USER_ID,FLIGHT_ID IDENTITY_NO

BOOKING_ID, USER_ID,FLIGHT_ID NO_OF_ADULTS


BOOKING_ID, USER_ID,FLIGHT_ID NO_OF_INFANTS

BOOKING_ID, USER_ID,FLIGHT_ID TOTAL_FARE

First Normal Form

In BOOKS, all the attributes are atomic and there cannot be duplicate rows. Hence, it is in 1NF.

Second Normal Form

This is already in 2NF since every non key attribute is fully dependent on primary key.

Third Normal Form

Since there is no transitive functional dependency, therefore table is already in 3NF.

You might also like