jfielding2000
James
- Local time
- Today, 23:01
- Joined
- Mar 6, 2008
- Messages
- 31
Hi Guys,
I have an exam coming up and I have a few past paper questions that I need answers to, to see if my ones are correct - to enable to further revise this topic.
I'm really looking for model answers - so I can make some good progress! I dont just want to pass - I want to at least get a half decent mark!
Here are the questions:
A local company that produces machine parts has decided to develop an in-house database system. They have identified the following tables: -
tblOrders OrderNo, CustomerNo, Date, OrderTotal
tblCustomers CustomerNo, Name, Street, Town, County, Postcode
tblParts PartNo, Description, UnitCost
tblItems OrderNo, PartNo, Quantity, ItemTotal
Create SQL queries to produce the following: -
a) Details of all orders over £1000 sorted by customer number. [5 marks]
b) A list of all part descriptions and their quantities appearing on order 39. [5 marks]
c) Delete all orders placed by customers in Wrexham. [5 marks]
d) Archive all orders placed by customer Clarke into a new table called tblArchive.
[5 marks]
e) Increase the price of all parts whose description includes the word “washer” by 4%. [5 marks]
I have an exam coming up and I have a few past paper questions that I need answers to, to see if my ones are correct - to enable to further revise this topic.
I'm really looking for model answers - so I can make some good progress! I dont just want to pass - I want to at least get a half decent mark!
Here are the questions:
A local company that produces machine parts has decided to develop an in-house database system. They have identified the following tables: -
tblOrders OrderNo, CustomerNo, Date, OrderTotal
tblCustomers CustomerNo, Name, Street, Town, County, Postcode
tblParts PartNo, Description, UnitCost
tblItems OrderNo, PartNo, Quantity, ItemTotal
Create SQL queries to produce the following: -
a) Details of all orders over £1000 sorted by customer number. [5 marks]
b) A list of all part descriptions and their quantities appearing on order 39. [5 marks]
c) Delete all orders placed by customers in Wrexham. [5 marks]
d) Archive all orders placed by customer Clarke into a new table called tblArchive.
[5 marks]
e) Increase the price of all parts whose description includes the word “washer” by 4%. [5 marks]