Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Right a SQL code that will display the chart above. Thank you! Consider the scenario from homework 1, where we designed an ER diagram as

image text in transcribed

Right a SQL code that will display the chart above. Thank you!

Consider the scenario from homework 1, where we designed an ER diagram as represented in the following 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 berun without error messages, the maximum possible points for each portion are listed below: Create Tables Load Data Constraints 45 points 45 points 10 points IName mName Title Nam Employees Branches WorksAt Stores location status ublishYr category ID IName titleBooks Writes Authors ID costLate costLoss checkOutDate ID ueDa urnDate printBooks AudioBooks mName IName ISBN ASIN

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions

Question

What are the reasons for segmentation of capital markets?

Answered: 1 week ago

Question

explain what is meant by redundancy

Answered: 1 week ago