Ignore if the candidate has got the syntax wrong as it’s not appropriate to test acandidate’s recollection of syntax in an exam.
CustIdint primary key,
PurchaseIdint primary key,
AccountIdint primary key,
ManagedByint primary key,
Identify and describe how you would develop two (2) queries that youconsider relevant to the daily operations of thebusiness.
Candidate needs to ask what information would be business need to know each day. Three (3) marks per query.
1 mark for legal SQL grammar (would the DB execute the query)
1 mark for the query being something they would need to know daily
1 mark for description of how they developed the query Types of query that should be awarded marks
Any query to check the referential integrity of the database
Which customer bought the most
What is the most popular product
What is the least popular product
Identify and describe how you would develop one (1) report that you could useeach month to show which sales representative made the most sales and to whichcustomers eachmonth.
(4 marks)2 marks for a description of what information would go into thereport2 marks for the SQL query