Question: 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 questionsUsing this ERD to answer below questions ii) Using the CREATE TABLE

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!