Attribute Name |
Sample Value |
Sample Value |
Sample Value |
Sample Value |
STU_NUM |
211343 |
200128 |
199876 |
199876 |
STU_LNAME |
Stephanos |
Smith |
Jones |
Ortiz |
STU_MAJOR |
Accounting |
Accounting |
Computer Science |
Computer Science |
DEPT_CODE |
ACCT |
ACCT |
MKTG |
MKTG |
DEPT_NAME |
Accounting |
Accounting |
Computer Science |
Computer Science |
DEPT_PHONE |
4356 |
4356 |
4378 |
4378 |
COLLEGE_NAME |
Business Admin |
Business Admin |
EAST |
EAST |
ADVISOR_LNAME |
Grastrand |
Grastrand |
Gentry |
Tillery |
ADVISOR_OFFICE |
T201 |
T201 |
T228 |
T356 |
ADVISOR_BLDG |
TE Building |
TE Building |
TE Building |
TE Building |
ADVISOR_PHONE |
2115 |
2115 |
2123 |
2159 |
STU_GPA |
3.87 |
2.78 |
2.31 |
3.45 |
STU_HOURS |
75 |
45 |
117 |
113 |
STU_CLASS |
Junior |
Sophomore |
Senior |
Senior |
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Normalization :
First Normal Form (1NF) :First Normal Form (1NF) says all the columns in the table should be automic in nature.No duplicate columns and multivalued columns are allowed in first normal form.
Is this in 1NF? Why or why not? If it isn’t, then what change(s) need to be made to ensure it’s in 1NF?
Given table is in the first normal form because all columns in the table are automic in nature.Here given relation does not contains any duplicate column or multivalued column.
Second Normal Form (2NF) :
Second normal form says table should be in the first normal form(1NF).All non key columns in the table should depends upon primary key column.Here in 2NF partial dependencies are not allowed.
Here above table given in the question needs to normalize in 2NF to remove partial dependencies.Here need to identity new tables like
Below are table in second normal form.
1.Table Name :Student
Description :This table store student details like STU_NUM,STU_LNAME,STU_CLASS.
Schema :Student (STU_NUM,STU_LNAME,STU_CLASS)
FD :STU_NUM STU_LNAME,STU_CLASS
Below is the table data
STU_NUM | STU_LNAME | STU_CLASS |
211343 | Stephanos | Junior |
200128 | Smith | Sophomore |
199876 | Jones | Senior |
199877 | Ortiz | Senior |
Here STU_NUM is primary key hence student number 199876 can not be duplicate.Need to change that number.For normalization purpose changing it to 199877.
2.Table Name :Major
Description :This table store major details like MAJOR_ID,STU_MAJOR,
Schema :Major(MAJOR_ID,STU_MAJOR)
FD :MAJOR_ID STU_MAJOR,
Below is the table data
MAJOR_ID | STU_MAJOR |
1 | Accounting |
2 | Computer Science |
3.Table Name :Department
Description :This table store department details like DEPT_CODE,DEPT_NAME,DEPT_PHONE
Schema :Department(DEPT_CODE,DEPT_NAME,DEPT_PHONE)
FD :DEPT_CODE DEPT_NAME,DEPT_PHONE
Below is the table data
DEPT_CODE | DEPT_NAME | DEPT_PHONE |
ACCT | Accounting | 4356 |
MKTG | Computer Science | 4378 |
4.Table Name :College
Description :This table store college details like COLLEGE_ID,COLLEGE_NAME
Schema :College(COLLEGE_ID,COLLEGE_NAME)
FD :COLLEGE_ID COLLEGE_NAME
Below is the table data
COLLEGE_ID | COLLEGE_NAME |
1 | Business Admin |
2 | EAST |
5.Table Name :Advisor
Description :This table store advisor details like ADVISOR_LNAME, ADVISOR_OFFICE, ADVISOR_BLDG, ADVISOR_PHONE,COLLEGE_ID
Schema :Advisor(ADVISOR_OFFICE,ADVISOR_LNAME,ADVISOR_BLDG, ADVISOR_PHONE , COLLEGE_ID)
FD :ADVISOR_OFFICE,COLLEGE_ID ADVISOR_LNAME,ADVISOR_BLDG, ADVISOR_PHONE
Below is the table data
ADVISOR_OFFICE | ADVISOR_LNAME | ADVISOR_BLDG | ADVISOR_PHONE | COLLEGE_ID |
T201 | Grastrand | TE Building | 2115 | 1 |
T228 | Gentry | TE Building | 2123 | 2 |
T356 | Tillery | TE Building | 2159 | 2 |
Third Normal Form (3NF) :Third Normal Form says table should be in the second normal form and all non key columns in the table should depends upon non key column in the table.Here in 3NF transitive dependencies are not allowed.
Here table needs to normalize into 3NF to remove transitive dependencies.Below are table in 3NF.
1.Table Name :Student
Description :This table store student details like STU_NUM,STU_LNAME,STU_CLASS.
Schema :Student (STU_NUM,STU_LNAME,STU_CLASS)
FD :STU_NUM STU_LNAME,STU_CLASS
Below is the table data
STU_NUM | STU_LNAME | STU_CLASS |
211343 | Stephanos | Junior |
200128 | Smith | Sophomore |
199876 | Jones | Senior |
199877 | Ortiz | Senior |
Here STU_NUM is primary key hence student number 199876 can not be duplicate.Need to change that number.For normalization purpose changing it to 199877.
2.Table Name :Major
Description :This table store major details like MAJOR_ID,STU_MAJOR,
Schema :Major(MAJOR_ID,STU_MAJOR)
FD :MAJOR_ID STU_MAJOR,
Below is the table data
MAJOR_ID | STU_MAJOR |
1 | Accounting |
2 | Computer Science |
3.Table Name :Department
Description :This table store department details like DEPT_CODE,DEPT_NAME,DEPT_PHONE
Schema :Department(DEPT_CODE,DEPT_NAME,DEPT_PHONE)
FD :DEPT_CODE DEPT_NAME,DEPT_PHONE
Below is the table data
DEPT_CODE | DEPT_NAME | DEPT_PHONE |
ACCT | Accounting | 4356 |
MKTG | Computer Science | 4378 |
4.Table Name :College
Description :This table store college details like COLLEGE_ID,COLLEGE_NAME
Schema :College(COLLEGE_ID,COLLEGE_NAME)
FD :COLLEGE_ID COLLEGE_NAME
Below is the table data
COLLEGE_ID | COLLEGE_NAME |
1 | Business Admin |
2 | EAST |
5.Table Name :Advisor
Description :This table store advisor details like ADVISOR_LNAME, ADVISOR_OFFICE, ADVISOR_BLDG, ADVISOR_PHONE,COLLEGE_ID
Schema :Advisor(ADVISOR_OFFICE,ADVISOR_LNAME,ADVISOR_BLDG, ADVISOR_PHONE , COLLEGE_ID)
FD :ADVISOR_OFFICE,COLLEGE_ID ADVISOR_LNAME,ADVISOR_BLDG, ADVISOR_PHONE
Below is the table data
ADVISOR_OFFICE | ADVISOR_LNAME | ADVISOR_BLDG | ADVISOR_PHONE | COLLEGE_ID |
T201 | Grastrand | TE Building | 2115 | 1 |
T228 | Gentry | TE Building | 2123 | 2 |
T356 | Tillery | TE Building | 2159 | 2 |
6.Table Name :StudentAllDetails
Description :This table store student details along with Department,advisor , major , hours and GPA.
Schema :StudentAllDetails (STU_NUM,MAJOR_ID,DEPT_CODE,ADVISOR_OFFICE,STU_HOURS,STU_GPA)
Below is the table data
STU_NUM | MAJOR_ID | DEPT_CODE | ADVISOR_OFFICE | STU_HOURS | STU_GPA |
211343 | 1 | ACCT | T201 | 75 | 3.87 |
200128 | 1 | ACCT | T201 | 45 | 2.78 |
199876 | 2 | MKTG | T228 | 117 | 2.31 |
199877 | 2 | T356 | T356 | 113 | 3.45 |
STU_NUM 199877 is used for demonstration purpose.
NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
Attribute Name Sample Value Sample Value Sample Value Sample Value STU_NUM 211343 200128 199876 199876 STU_LNAME...
Normalize the dataset into 3NF tables. Use this format: 1 NF: PROJECT (ProjectNum, Proj_Name, Start_Date, Emp_Num, Emp_Name, Job_Class) 2 NF: 3 NF: ATTRIBUTE SAMPLE VALUE SAMPLE VALUE SAMPLE VALUE SAMPLE VALUE SAMPLE VALUE NAME STU_NUM 211343 200128 199876 198648 223456 STU_LNAME Stephanos Smith Jones Ortiz McKulski STU_MAJOR Accounting Accounting Marketing Marketing Statistics DEPT_CODE ACCT ACCT MKTG MKTG MATH DEPT_NAME Accounting Accounting Marketing Marketing Mathematics DEPT_PHONE 4356 4356 4378 4378 3420 COLLEGE_NAME Business Admin Business Admin Business Admin Business Admin Arts...
1. Using the STUDENT table structure shown in Table P6.4, do the following. Table P6.4 Sample STUDENT Records Attributes Name Sample Value Sample Value Sample Value Sample Value Sample Value STU_NUM STU_LNAME STU_MAJOR DEPT_CODE DEPT_NAME DEPT_PHONE COLLEGE_NAME ADVISOR_LNAME ADVISOR_OFFICE ADVISOR_BLDG ADVISOR_PHONE STU_GPA STU_HOURS STU_CLASS 211343 stephanos Accounting ACCT Accounting 4356 Business Admin Grastrand T201 Torre Building 2115 3.87 75 junior 200128 Smith Accounting ACCT Accounting 4356 Business Admin Grastrand T201 Torre Building 2115 2.78 45 Sophomore 199876 Jones Marketing MKTG...
Attribute Name Sample Value Sample Value Sample Value MEMBER_NUM 214 235 214 MEMBER_NAME Alice B. VanderVoort Gerald M. Gallega Alice B. VanderVoort MEMBER_ADDRESS 325 Meadow Park 123 Rose Court 325 Meadow Park MEMBER_CITY Murkywater Highlight Murkywater MEMBER_ZIPCODE 12345 12349 12345 INVITE_NUM 8 9 10 INVITE_DATE 23-Feb-2018 12-Mar-2018 23-Feb-2018 ACCEPT_DATE 27-Feb-2018 15-Mar-2018 27-Feb-2018 DINNER_DATE 15-Mar-2018 17-Mar-2018 15-Mar-2018 DINNER_ATTENDED Yes Yes No DINNER_CODE DI5 DI5 DI2 DINNER_DESCRIPTION Glowing Sea Delight Glowing Sea Delight Ranch Superb ENTREE_CODE EN3 EN3 EN5 ENTREE_DESCRIPTION Stuffed crab...