Escolar Documentos
Profissional Documentos
Cultura Documentos
31/7/2010
RAVI KUMAR
REGISTRATION NO. 10804644
Problem Description:
There are multiple banks and each bank has many branches. Each branch
has multiple customers
Customers have various types of accounts
Some Customers also had taken different types of loans from these bank
branches
One customer can have multiple accounts and Loans
M 1
Branches
1 Branch
Branch no. Name
name
Bank M
N#
Customers
Bank no. name
1 Account no.
M
Account and
loans
Customer
Loan no.
name
Step 1:
Determining primary key: From above stated functional dependencies, it is evident
that a,e determines c and d . d determines e and hence a,e determines all the
non-key attributes (b,c,d) of the relation. Thus a,e is the primary key for relation
R.
Step 2:
Highest normal form: All the attributes are atomic in nature therefore Relation R is in
1NF.
All non-key attributes (b, c, d) are fully functionally dependent on the primary key (a, e).
Therefore the relation in is 2NF.
All the non-key attributes (b, c, d) are non-transitively depending on primary key (a,e).
Therefore the relation is in 3NF.
Ans:
Assignment 6: Normalization
Problem Description:
Find the primary key and the highest normal form of following
relations
Problem Description: Create the following tables with appropriate constraints and
insert the given sample data.
Applicant Table
Branch Table
Course Table
Student Table
Registration Table
Department Table
Hostel Table
Applicant Data
Applicant
ApplicantId Name EmailId Address City
Raj raj@abc.com 2nd Mysore
A001 Street,Hebbal
Vadi vadi@abc.com 4th Bangalore
Street,Vijayanga
A002 r
Sam Sam_Sundar@a 5th Cochin
A003 bc.com Street,Edappalli
A004 Suraj suraj@abc.co 1st Kolkata
m Main,Rabindra
Nagar
A005 Lakshmi 2nd Vizag
Main,Allipuram
A006 Sandra sandra@abc.co 3rd Corss,RS Coimbatore
m Puram
A007 Vivek Vivek_kumar@ 5th Chennai
abc.com Main,Coimbed
A008 Vikas vikas@abc.com 2nd Bangalore
Main,Jayalakhmi
puram
A009 Bipin 2nd Mysore
Cross,Siddarth
Nagar
A010 Gopi gopi@abc.com 2nd Delhi
Street,Green
Market
A011 Sandy sandy@abc.co 9th Bangalore
m Cross,Seshadripu
ram
A012 Lilly lilly@abc.com 9th Main,Banjara Hyderabad
Hills
A013 Rose 11th Cochin
Cross,Kadavanth
ara
A014 Megha megha@abc.co 10th Lane,Vashi Mumbai
m
A015 Henry henry@abc.co 2nd street,Silk Bangalore
m Board
A016 Joel jeol@abc.com 4th Mysore
street,Vijayanag
ar
Branch Data
BranchId BranchName
B1 Information Science
B2 Computer Science
B3 Electronics
B4 Electrical
B5 Mechanical
B6 Civil
Course Data
Assign- Semester
Course Course Branch Project ment Internal Exam
Id Name Semester Id Elective Marks Marks Marks Marks
Programming 1 B1 N 20 10 10 60
C001 Fundamentals
C002 Data Structures 2 B1 N 20 10 10 60
C003 Basics of RDBMS 2 B1 N 20 10 10 60
C004 System Software 3 B1 N 20 10 10 60
Computer 3 B2 N 20 10 10 60
C005 Hardware
C006 File Structures 4 B1 N 60 10 10 20
Network 4 B3 N 20 10 10 60
C007 Computing
Data 5 B1 Y 20 10 10 60
C008 Warehousing
Analysis of 5 B1 N 20 10 10 60
C010 Algorithms
C009 Neural Networks 6 B2 Y 10 10 80
Student data
Current
StudentId ApplicantId Semester UserId Password
S001 A001 2 raj Tiger
S002 A003 3 sam Tiger
S003 A004 5 suraj Tiger
S004 A006 3 sandra Tiger
S005 A007 4 vivek Tiger
S006 A008 7 vikas Tiger
S007 A009 8 bipin Tiger
S008 A010 3 gopi Tiger
S009 A012 1 lilly Tiger
S010 A013 4 rose Tiger
S011 A014 7 megha Tiger
S012 A015 6 henry Tiger
S013 A016 2 jeol Tiger
Registration Data
Semester
DateOf Project Assignment Internal Exam
StudentId CourseId Exam Marks Marks Marks Marks Grade
S001 C001 5-Jun-08 20 5 5 50 A
S002 C001 24-Aug-08 15 10 8 32 B
S003 C002 15-Mar-08 20 9 9 55 A
S004 C003 13-Aug-08 20 10 10 60 A
S005 C004 8-Sep-08 15 10 10 50 A
S006 C005 22-Nov-08 10 5 5 30 D
S007 C006 6-Feb-08 45 5 5 15 B
S010 C004 8-Sep-08 20 10 10 40 A
S009 C003 29-Dec-08 18 8 10 46 A
S011 C007 13-Sep-08 20 7 8 55 A
S012 C008 16-Jan-08 35 5 5 20 B
S013 C006 6-Feb-08 47 8 7 18 A
Department Data
DepartmentId DepartmentName HeadOfDepartment
Instructor Data
Attendance Data
S001 C001 4 3
S002 C001 4 4
S003 C002 8 5
S004 C003 3 3
S005 C004 4 2
S006 C005 10 9
S007 C006 5 5
S010 C004 4 4
S009 C003 3 1
S011 C007 6 5
S012 C008 1 1
Hostel Data