How are you doing lads, i have a question here from an
assingment i have to do. Ive been wrecking my head for some time now, does anyone have any suggestions?
HERE ARE THE TABLES:
customer(custcode,customername,address1,address2,town,age,gender)
custcode is primary key
shop(shopcode,shopname,shoptype,town)
shopcode is primary key
purchase(custcode,shopcode,date,itemcode,cost)
custcode,shopcode,date,itemcode is composite primary key
item(itemcode,itemcategory,itemname)
itemcode is primary key, itemname is unique
shopstock(shopcode,itemcode,qtyinstock,price)
shopcode,itemcode is composite primary key
AND HERE IS THE QUESTION
Q11. List the names of the shops having the largest and smallest amounts of money tied up in stock as well as the respective amounts.
assingment i have to do. Ive been wrecking my head for some time now, does anyone have any suggestions?
HERE ARE THE TABLES:
customer(custcode,customername,address1,address2,town,age,gender)
custcode is primary key
shop(shopcode,shopname,shoptype,town)
shopcode is primary key
purchase(custcode,shopcode,date,itemcode,cost)
custcode,shopcode,date,itemcode is composite primary key
item(itemcode,itemcategory,itemname)
itemcode is primary key, itemname is unique
shopstock(shopcode,itemcode,qtyinstock,price)
shopcode,itemcode is composite primary key
AND HERE IS THE QUESTION
Q11. List the names of the shops having the largest and smallest amounts of money tied up in stock as well as the respective amounts.