1.

Consider the tables given below :Table : CustomerCustIdNameCityItemldC101Amit KumarDelhi1105C104Michael DesouzaMumbai1103C105Abhay ChaddhaDelhi1101C106Raman KaurChennai1103Table: ItemItemIdItem NamePrice1101Computer350001102Laptop370001103Printer60001104Keyboard20001105Mouse475(i) Name the primary keys in both the tables.(ii) 'I103' data is present twice in column'Itemld' column in 'Customer' table - Is there any discrepancy? Give reason for your answer.

Answer»

(i) Customer - CustId

Item - ItemId

(ii) No. ItemId is the foreign key

table and can have duplicates.



Discussion

No Comment Found

Related InterviewSolutions