Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. The effect of the following SQL instruction on the PROJECT table, when the only known Dnum instances in the DEPARTMENT table are 1, 4

image text in transcribed

4. The effect of the following SQL instruction on the PROJECT table, when the only known Dnum instances in the DEPARTMENT table are 1, 4 and 5 is INSERT INTO PROJECT VALUES (Finance', 30, 'Windsor', 2); a. Insert an additional tuple in the PROJECT table with values specified. b. Update the second tuple of the PROJECT table to have the values specified. c. Raise an exception to indicate that there is a referential integrity violation. d. Raise an exception to indicate that there is a primary key constraint violation. e. None of the above 5. A basic SQL retrieval query to get all PROJECT name and its department name is: a. Select * where Plocation = 'Sugarland'; b. Select peame, doame from PROJECT; c. Select pname, dname from PROJECT, DEPARTMENT; d. All of the above e. None of the above 6. To retrieve the number of PROJECTs handled by each Dnum in the table PROJECT, we can use the query: a. Select Dnum, count(*) from PROJECT group by Dnum; b. Select min(*) from PROJECT group by Dnum; Select Dnum, sum(*) from PROJECT group by Dnum: d. Select max(*) from PROJECT group by Dnum; None of the above c. e

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions