Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1SELECT SUM(Score) FROM Results; | AGives the total of a real (decimal) field, returned as a single row | |
| 2SELECT SUM(Price) FROM Products; | BSELECT SUM(Quantity) FROM Orders; | |
| 3SUM adds up an integer field and gives one row of output | CSUM cannot be used on a text field. Surname is not numeric, so it cannot be added up. | |
| 4SUM only works on numeric fields, such as a field of numbers like Mark | DSELECT SUM(Mark) FROM Results; | |
| 5SELECT SUM(Surname) FROM Students; | EAdds up every value in the Score field and returns one total | |
| 6SELECT SUM Score FROM Results; | FThe field name is missing its brackets. It should be SUM(Score). |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
SUM(field) — Adds up all the values in a numeric field and returns one total, e.g. SELECT SUM(Score) FROM Results; gives one row. It only works on numbers.SELECT SUM(Score) FROM Results;SELECT SUM(Price) FROM Products;SELECT SUM(Quantity) FROM Orders;-- Total of the Points field
SELECT SUM(Points)
FROM Players;-- One total of all Weight values
SELECT SUM(Weight)
FROM Parcels;