Question: ( 3 a ) Table EMP has 2 5 , 0 0 0 records. Create View V 1 as Select Sex, Count ( * )
a Table EMP has records.
Create View V as Select Sex, Count from EMP order by Sex group by Sex;
How many records does V have? Is V updatable? Explain your answer.
b Table T has fields A B C D A is the primary key. D is a foreign key into table T User X has view V on T with fields B C D column subset Can user X add a record to V Explain your answer.
c Table T has fields A B C D A is the primary key. D is a foreign key into table T User A has view V on T with fields A B C D for B and. B row subset Give an example of how adding a record can cause a violation of entity integrity.
d Table T has fields A B C D A is the primary key. D is a foreign key into table T User Y has view V on T with fields A B C Give an example of user Y adding a record that will cause a referential integrity error.
e You have a table R with five fields A B C X and W with the following functional dependencies:
X A W B B W A C X
What is the only choice for the primary key of this table? Give a complete explanation why this is the primary key and not something else
Give one normal form that the table does not satisfy. Explain why the table does not satisfy that normal form.
Convert table R into tables satisfying NF
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
