Question: This question is based on successful execution of the following statement: CREATE VIEW changeaddress AS SELECT customer#, lastname, firstname, order#, shipstreet, shipcity, shipstate, shipzip FROM

This question is based on successful execution of the following statement:

CREATE VIEW changeaddress

AS SELECT customer#, lastname, firstname, order#,

shipstreet, shipcity, shipstate, shipzip

FROM customers JOIN orders USING (customer#)

WHERE shipdate IS NULL

WITH CHECK OPTION;


Assuming there’s only a primary key, and FOREIGN KEY constraints exist on the

underlying tables, which of the following commands returns an error message?

a. UPDATE changeaddress

SET shipstreet = '958 ELM ROAD'

WHERE customer# = 1020;

b. INSERT INTO changeaddress

VALUES (9999, 'LAST', 'FIRST', 9999,

'123 HERE AVE', 'MYTOWN', 'AA' 99999);

c. DELETE FROM changeaddress

    WHERE customer# = 1020;

d. All of the above

e. Only a and b

f. Only a and c

g. None of the above

Step by Step Solution

3.47 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

b INSERT INTO chan... View full answer

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

Document Format (2 attachments)

PDF file Icon

1803_60b8c1212b375_716746.pdf

180 KBs PDF File

Word file Icon

1803_60b8c1212b375_716746.docx

120 KBs Word File

Students Have Also Explored These Related Oracle 12c SQL Questions!