Question: Question 2 ( 8 marks ) The relational database below contains two related tables - Painting and Painter in a museum. Table structure and design

Question 2(8 marks)
The relational database below contains two related tables - "Painting" and "Painter" in a museum. Table structure and design for 'painting' is below:
6
\table[[Field Name,Data Type,\table[[Description (Optional)],[painting-code]],Short Text],[painting ocde,(primary key),,]]
Actual sample data (incomplete) for 'painting' table is below:
\table[[\table[[painting],[-code]],\table[[painting],[-title]],\table[[painting],[-boughtDate]],\table[[painting],[-type]],\table[[painting],[-weight]],\table[[painting -],[cost]],\table[[painting],[-maintainDate]],\table[[painter],[-code]]],[10010,aaa,2000-11-14,P,615,$12344567,2010-11-14,501],[10011,bbb,2001-10-1,G,615,$23456789,2010-11-16,501],[10012,ccc,2001-8-1,M,234,$34567890,2010-11-13,502],[10013,eee,2002-10-1,B,234,$45457777,2010-10-13,503],[10014,jij,2000-10-11,M,231,$43643688,2010-10-23,503],[10015,sdg,2001-10-23,O,275,$67644632,2010-10-30,504],[10016,ewt,2002-10-18,I,789,$23231787,2010-12-30,501]]
Table structure and design for 'painter' is below:
\table[[Field Name,Data Type,Description (Optional)],[painter-code,ahort Text,code of painter (primary key),],[painter-lname,Short Text,last name of painter,],[painter-firstname,Short Text,first name of painter,],[painter-initial,Short Text,initial of painter,],[painter-areacode,Short Text,area code of painter,],[painter-phone,Short Text,phone number of painter,]]
Actual sample data (incomplete) for 'painter' table is below:
\table[[painter,painter,\table[[painter],[-code]],-Iname,-firstname,\table[[painter],[-initial]]]]
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.
(3 marks)
b. The above database contains an error in the data. Identify and describe this error.
(5 marks)
Question 2 ( 8 marks ) The relational database

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 Programming Questions!