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 | |
|---|---|---|
| 1firstName VARCHAR(50) | AVARCHAR has no size. A maximum number of characters is needed, for example VARCHAR(50). | |
| 2price DECIMAL(8,2) | BA number column with up to 8 digits in total, 2 of them after the decimal point | |
| 3A column that stores whole numbers only, such as a student's age or points | CA text column that can hold up to 50 characters | |
| 4A column that stores a calendar date such as a birth date or order date | DINT stores whole numbers, so it is the wrong type for a true/false value. BOOLEAN should be used. | |
| 5lastName VARCHAR | EorderDate DATE | |
| 6inStock INT | Fpoints INT |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
VARCHAR(50) — A column's data type and size set in CREATE TABLE. VARCHAR(50) holds text up to 50 characters. Other types: INT, DECIMAL(8,2), DATE, BOOLEAN. They control what a column stores.CREATE TABLE students (
firstName VARCHAR(50)
);CREATE TABLE products (
stock INT
);CREATE TABLE products (
price DECIMAL(8,2)
);CREATE TABLE orders (
orderDate DATE
);CREATE TABLE students (
isPrefect BOOLEAN
);