Question: Given the schema where primary keys are underlined Item (itemid, name, category, price) Itemsale (transid, itemid, qty) Customer (custid, name, street-addr, city) Transaction (transid, custid,

Given the schema where primary keys are underlined

Item (itemid, name, category, price) Itemsale (transid, itemid, qty) Customer (custid, name, street-addr, city) Transaction (transid, custid, date)

Write SQL statements for each that can be executed after the create statements completed and database exists. Make the following modifications.

A special view is needed for sales clerks to view customer PurchaseHistory. The fields of interest are customer ID, Item name, Item quantity, Purchase date, Total price. Use these field names in your customized view.

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!