Question: ( 3 a ) Table EMP has 2 5 , 0 0 0 records. Create View V 1 as Select Sex, Count ( * )

(3a) Table EMP has 25,000 records.
Create View V1 as Select Sex, Count(*) from EMP order by Sex group by Sex;
How many records does V1 have? Is V1 updatable? Explain your answer.
(3b) Table T1 has fields A B C D. A is the primary key. D is a foreign key into table T2. User X has view V1 on T1 with fields B C D (column subset). Can user X add a record to V1? Explain your answer.
(3c) Table T1 has fields A B C D. A is the primary key. D is a foreign key into table T2. User A has view V5 on T1 with fields A B C D for B >10.and. B <20(row subset). Give an example of how adding a record can cause a violation of entity integrity.
(3d) Table T1 has fields A B C D. A is the primary key. D is a foreign key into table T2. User Y has view V2 on T1 with fields A B C. Give an example of user Y adding a record that will cause a referential integrity error.
(3e) 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
1. 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).
2. Give one normal form that the table does not satisfy. Explain why the table does not satisfy that normal form.
3. Convert table R into tables satisfying 3NF.

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!