Question: Question 1 (15 marks) The relational database below contains two related tables - Manager and Sub-ordinate: Iname 501 Sub-ordinate table: Primary key = Sub -code,

Question 1 (15 marks) The relational database
Question 1 (15 marks) The relational database below contains two related tables - "Manager" and "Sub-ordinate": Iname 501 Sub-ordinate table: Primary key = Sub -code, Foreign key = Man -code Sub-code Sub Sub-deptSub Sub-phone Sub -Man-code areacode renew Date 10010 zzzsales 688 123445677 2017-11-14 10011 xxx Jaccount 1606 1234567899 2017-11-16 501 10012 yyy IT 2 32 345678900 2017-11-13 502 10013 ece sales 2 34 454577777 2017-10-13 503 10014 lii sales 231 436436885 2017-10-23503 10015 sdg account 175 1676446322 2017-10-30 504 10016 Jewt legal 789 232317879 2017-12-30 502 "Manager" table: Primary key = Man -code, No Foreign key Man-code Man - Iname Man-fname Man -Initial Man-areacode Man-phone 501abcabenbve F S615 |123445678 502 werte hjjkgdf B 6 15 2 34567890 503 zxcvb pooliuu X 234 3 45678901 a. From the above data, what type of relationships: one-to-one, one-to- many, or many-to-many, do the above two tables have? Explain your answer. (5 marks) b. The above database contains an error in the data. Identify and describe this error. (5 marks) c. Why does Manager" table has no foreign key and why does "Sub- ordinate" table has foreign key? Describe the use of primary and foreign keys in databases. Illustrate with examples in your answers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!