![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I am studying an IT course and thought I was just beginning to master the basics of normalization. However I came across an example in my text book that wasnt what I would have arrived at. It was the structure for a transactional database which allowed several items to be purchased in a single order. The text book suggested (Primary Key in capitals): tblCustomer (CUSTOMER_NUMBER, Title, Surname, Forename, Initials, Address1, etc) tblOrder (ORDER_NUMBER, Part_Number, Quantity, Customer_Number, Date) tblProduct (PART_NUMBER, Description, category, Price, No_in_stock, Re_order_level, etc) tblOrderLine (Order_Number, Part_Number, Customer_Number) By myself I would have thought of: tblCustomer (CUSTOMER_NUMBER, Title, Surname, Forename, Initials, Address1, etc) tblOrder (ORDER_NUMBER, Customer_Number, Date) tblProduct (PART_NUMBER, Description, category, Price, No_in_stock, Re_order_level, etc) tblOrderLine (Order_Number, Part_Number, Quantity) What am I missing? Thanks |
#3
| |||
| |||
|
|
Hi I am studying an IT course and thought I was just beginning to master the basics of normalization. However I came across an example in my text book that wasnt what I would have arrived at. It was the structure for a transactional database which allowed several items to be purchased in a single order. The text book suggested (Primary Key in capitals): tblCustomer (CUSTOMER_NUMBER, Title, Surname, Forename, Initials, Address1, etc) tblOrder (ORDER_NUMBER, Part_Number, Quantity, Customer_Number, Date) Are you sure the PK here is not ORDER_NUMBER,PART_NUMBER?? |
|
tblProduct (PART_NUMBER, Description, category, Price, No_in_stock, Re_order_level, etc) tblOrderLine (Order_Number, Part_Number, Customer_Number) No PK here?? By myself I would have thought of: tblCustomer (CUSTOMER_NUMBER, Title, Surname, Forename, Initials, Address1, etc) tblOrder (ORDER_NUMBER, Customer_Number, Date) tblProduct (PART_NUMBER, Description, category, Price, No_in_stock, Re_order_level, etc) tblOrderLine (Order_Number, Part_Number, Quantity) What am I missing? Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |