The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 364 Weeks Ago, 4 Days Ago |
| Questions Answered: | 1850 |
| Tutorials Posted: | 1850 |
Graduate in Biology and Nutrition, MBA Finance
Florida State University
Aug-2000 - Jul-2007
Ass. Relationship Manager
Penn-Florida
Mar-2009 - Feb-2016
oracle sql
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 theinventory and in an order.
Answer the following questions using QBE. Draw tables in your answer.
1. Find the name of the customers who bought ‘surface’ on ‘01/21/2015’ from shop ‘NYC Windows Store’.
2. Find the oldest customer who is either a member of ‘NYC Windows Store’ or ‘LA Windows Store’.
3. Insert records to the Membership table for those customers who have purchased formore than $30000 before ’04/01/2014’ in the shop ‘NYC Windows Store’. Setmember type = ‘regular member’ and date=’04/01/2015’.Â
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m Â----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I