Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CREATE TABLE Employee-Work (age INTEGER, ssn CHAR(10), name CHAR(50), pid CHAR(10) Not Null, PRIMARY KEY (ssn), FOREIGN KEY (pid) REFERENCES Project ON Delete CASCADE)

CREATE TABLE Employee-Work (age INTEGER, ssn CHAR(10), name CHAR(50), pid CHAR(10) NotNull, PRIMARY KEY What will be the new instances of the tables Employee-work and Project after running the following query?

CREATE TABLE Employee-Work (age INTEGER, ssn CHAR(10), name CHAR(50), pid CHAR(10) Not Null, PRIMARY KEY (ssn), FOREIGN KEY (pid) REFERENCES Project ON Delete CASCADE) CREATE TABLE Project( pid CHAR(10), Project pid 100 102 200 101 budget 500K 400K 700K 100K budget CHAR(10), PRIMARY KEY (pid)) Employee-work Ssn name 5380 Joe 5381 Ali 5382 Jill pid 102 101 100 What will be the new instances of the tables Employee-work and Project after running the following query? DELETE FROM Project P WHERE P.pid=100 or P.pid-200

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant Navathe

7th Edition

0133970779, 978-0133970777

More Books

Students also viewed these Databases questions