Home » Other » Training & Certification » Updatable views + Key preserved table (merged)
icon6.gif  Updatable views + Key preserved table (merged) [message #315601] Tue, 22 April 2008 02:24 Go to previous message
priyamalhotra
Messages: 43
Registered: July 2006
Location: none
Member



Hi,

Kindly provide which one would be correct for the following:

Some explanation would be helpful.

The primary key of the STATE table is STATE_CD. The primary key of the CITY table is STATE_CD and CITY_CD. The STATE_CD column of the CITY table is the foreign key to the STATE table. There are no other constraints on these two tables. Consider the following view definition.

CREATE OR REPLACE VIEW state_city AS
SELECT a.state_cd, a.state_name, b.city_cd, b.city_name
FROM state a, city b
WHERE a.state_cd = b.state_cd;

Which of the following operations are permitted on the base tables of the view? (Choose all that apply.)

A. Insert a record into the CITY table

B. Insert a record into the STATE table

C. Update the STATE_CD column of the CITY table

D. Update the CITY_CD column of the CITY table

E. Update the CITY_NAME column of the CITY table

F. Update the STATE_NAME column of the STATE table



Thanks,
Priya.




 
Read Message icon6.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon10.gif
Previous Topic: how can i catch prime numbers with While Loop ?
Next Topic: Beginner database designer/dba
Goto Forum:
  


Current Time: Fri Apr 19 23:08:24 CDT 2024