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 questions
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 ZipcodeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started