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 firstName, points FROM students; | AThe header row of a CSV file, holding the field names that become the spreadsheet column headings | |
| 2firstName,points | BA query whose returned rows and columns can be exported as a CSV file for a spreadsheet | |
| 3A CSV file stores each exported record on its own line, with the values separated by commas | CValues are separated by spaces, not commas, so a spreadsheet would put each whole line into a single column. Use Ava,120 and Liam,95. | |
| 4After importing, check that the imported columns match the query fields and hold the right data type | DThe header row is missing. The file should start with firstName,points so the columns have headings in the spreadsheet. | |
| 5Ava 120 Liam 95 | E=ISNUMBER(B2) | |
| 6Ava,120 Liam,95 Mia,130 | FAva,120 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Export query results as CSV — Save the rows a query returns as a CSV file with a header row of field names. Import it into a spreadsheet, then check the columns came across correctly before further analysis..headers on
.mode csv
.output results.csv.headers on
.mode csv
.output marks.csv.mode csv
.output house_points.csv
SELECT house, points FROM students;firstName,points
Ava,120
Liam,95=COUNT(B2:B11)