Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. Consider the following ER diagram. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible. name ssn

. Consider the following ER diagram. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible.

name

ssn

s

image text in transcribedcost

Policy uyyih

pname

age

Employee

Dependent s

B. Assume we have the following instances for two tables Employee and Dept-Policy:

Dept-Policy

Homework 2 will focus on problems from chapters 3, 4 and 5 of the book. (30 points) Q1. A. Consider the following ER diagram. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible name ssn cost pname age Employee olicy Dependent B. Assume we have the following instances for two tables Employee and Dept-Policy: Dept-Polic,y Employee ssn pnameage cost 5381 Jack 5381 Sara 5382 Jill 100 SSnname 100 60 12 5380 Emily 5381 John 5382 Ali 5 What will be the new instances of the tables Employee and Dept-Policy after running the following query? DELETE FROM Employee E WHERE E.sSn5381

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

More Books

Students also viewed these Databases questions

Question

Discuss the steps used in strategic planning.

Answered: 1 week ago

Question

Were they made on a timely basis?

Answered: 1 week ago

Question

Did the decisions need to be made, or had they already been made?

Answered: 1 week ago