Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using this ERD to answer below questions ii) Using the CREATE TABLE in any dialect of SQL, show the corresponding SQL tables. Indicate the primary

Using this ERD to answer below questionsimage text in transcribed

ii) Using the CREATE TABLE in any dialect of SQL, show the corresponding SQL tables. Indicate the primary key, foreign keys, column names, constraints etc. iii) Insert (at least) 10 sample rows for each identified table. iv) List the names and phone numbers of all customers who have a credit limit > $10,000 in alphabetical order. v) Find the average purchase price of all the purchases for a particular customer. vi) List all the items with a price above the average price for a particular customer. vii) List the customer and art title that has been sold at least 2 times.

Customer PK CustomerID Artist FirstName Purchase History PK ArtistID PK,FK1 CustomerID LastName ArtistName Street PK,FK2 ArtWork Address Mobile PK Purchase Date ArtWork PK Zipcode HE Gender Purchase Price PK ArtTitle City DOB FK ArtistID State CreditLimit ArtType Country FK Zipcode

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

DESCRIBE behaviour that could constitute haras sment.

Answered: 1 week ago

Question

3. What strategies might you use?

Answered: 1 week ago