Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write SQL statements to create the corresponding relations and capture as many of the constraints as possible. figure for an art gallery in Greensboro. Write

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

image text in transcribed

figure for an art gallery in Greensboro. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible. If cannot capture some constraints, explain why. Make sure that the data type and size for each attribute are appropriate. For example, a numerical data type is better choice than a string data type for the attribute salary. Please put your SQL statements into a SQL script file and submit it to the assignment link. Make sure your SQL script file can be run successfully in MySQL before submitting it. If it can't be run, your grade of this assignment will be a ZERO. If your file can be run without error messages, the maximum possible points for each portion are listed below: Create Tables 45 points Load Data45 points Constraints 10 points address address IName ssn hone mName fName bTitle Branches WorksAt Employees ID Stores location status fName ame category ublishYr ID IName ublisher title Books Writes Authors costLate costLoss CheckOut Members checkOutDate ID ne birthda ueDate returnDate ame address AudioBooks mName printBooks IName phone narrator language ISBN ASINClistenLength

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions