Question: Consider the following database schema: Customer ( cid , cname, phone, age) Order ( oid , date, total_price, cid, sid) Order_item ( coid , oid

Consider the following database schema:

Customer (cid, cname, phone, age) Order (oid, date, total_price, cid, sid) Order_item (coid, oid, quota) Inventory (coid, coname, amount, price, sid) Shop (sid, sname, revenue) Membership (cid, sid, date, type)

Primary key attributes are underlined. Note that coid is a unique id for commodities in the inventory and in an order.

Answer the following questions using QBE. Draw tables in your answer.

1. Insert records to the Membership table for those customers who have purchased for more than $10000 before 03/01/2015 in the shop Apple Store. Set member type = regular member and date=03/01/2015.

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!