Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a column that stores very small integers.
MySQL
CREATE TABLE example (age [1]); Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using VARCHAR or TEXT for numbers causes storage inefficiency.
Using DATE type for numbers is incorrect.
✗ Incorrect
The TINYINT type stores very small integers, using 1 byte.
2fill in blank
mediumComplete the code to create a column that stores standard integers.
MySQL
CREATE TABLE example (score [1]); Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using FLOAT stores decimal numbers, not integers.
CHAR and BOOLEAN are not integer types.
✗ Incorrect
The INT type stores standard integers, using 4 bytes.
3fill in blank
hardFix the error in the code to create a column for very large integers.
MySQL
CREATE TABLE example (population [1]); Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using INT for very large numbers can cause overflow.
VARCHAR and TEXT are for strings, not numbers.
✗ Incorrect
BIGINT stores very large integers, using 8 bytes.
4fill in blank
hardFill both blanks to create a table with a small and a large integer column.
MySQL
CREATE TABLE data (small_num [1], large_num [2]);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using VARCHAR or TEXT for numbers.
Mixing up the sizes of integer types.
✗ Incorrect
TINYINT is for small integers, and BIGINT is for large integers.
5fill in blank
hardFill all three blanks to create a table with three integer columns of increasing size.
MySQL
CREATE TABLE numbers (small [1], medium [2], large [3]);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using VARCHAR for integer columns.
Confusing the order of integer sizes.
✗ Incorrect
TINYINT is the smallest integer type, INT is medium, and BIGINT is the largest.