Question 1
What is a database?
-
An organised collection of data
-
A single image file
-
A computer network cable
-
A type of antivirus
Question 2
What is a table in a database?
-
A set of records about one entity type
-
A backup file type
-
A list of software licenses
-
A network topology
Question 3
What is a record in a database table?
-
Row in a table
-
Column in a table
-
Query in SQL
-
Form in an app
Question 4
What is a field in a database table?
-
Column in a table
-
Row in a table
-
Table relationship
-
Primary key only
Question 5
What must be true of a primary key?
-
Unique for each record
-
The same in every row
-
A text field only
-
Optional in all tables
Question 6
What is a foreign key used for?
-
Link one table to another
-
Encrypt table data
-
Sort records alphabetically
-
Compress a database
Question 7
In SQL, which command retrieves data?
-
SELECT
-
UPDATE
-
DELETE
-
INSERT
Question 8
In SQL, which clause filters rows?
-
WHERE
-
ORDER BY
-
FROM
-
JOIN
Question 9
What is ORDER BY used for in SQL?
-
Sort results
-
Delete results
-
Count fields
-
Create tables
Question 10
What does ASC mean in SQL?
-
Ascending order
-
Across all columns
-
As stored currently
-
Absolute sort count
Question 11
What does DESC mean in SQL?
-
Descending order
-
Default search condition
-
Delete selected columns
-
Data entry script command
Question 12
What does COUNT() return in SQL?
-
Number of matching rows
-
Largest value only
-
Average value only
-
Total number of columns
Question 13
What does SUM() return in SQL?
-
Total of numeric values
-
Middle value
-
Most common text
-
Number of tables
Question 14
What does AVG() return in SQL?
-
Mean of numeric values
-
Median of text values
-
Highest value only
-
Count of rows
Question 15
What does AND mean in an SQL condition?
-
Both conditions must be true
-
Either condition can be true
-
No condition is checked
-
Rows are sorted descending
Question 16
What does OR mean in an SQL condition?
-
At least one condition must be true
-
Both conditions must be true
-
Exactly one condition is true
-
Only text fields are searched
Question 17
What is INSERT INTO used for in SQL?
-
Add new records
-
Remove records
-
Sort records
-
Rename fields
Question 18
What is UPDATE used for in SQL?
-
Change existing records
-
Create a new database
-
Delete a table
-
Count all rows
Question 19
What is DELETE used for in SQL?
-
Remove records
-
Add records
-
Encrypt records
-
Sort records
Question 20
What does normalisation help to do in a database?
-
Reduce duplicated data and inconsistency
-
Increase spelling errors
-
Remove all keys from tables
-
Store everything in one giant table
Question 21
In SQL, what does JOIN do?
-
Combines related rows from multiple tables
-
Deletes duplicate rows automatically
-
Encrypts selected columns
-
Sorts rows into random order
Question 22
In SQL LIKE, what does % mean?
-
Any sequence of characters
-
Any single character
-
Any numeric value only
-
End of the SQL query