Font size
WorksheetsPost-Test Database Quiz (SQL) PRSHS
Total questions: 55
Worksheet time: 39mins
What are databases mainly used for?
To store archived data
To store and organise data
To analyse data
Which of the following uses paper-based databases?
Phonebook
Smart Phone
Computer
Select one 'school/student based' database term.
Allergies
Type of pet
Social media accounts
In a database, data is stored in
Queries
Forms
Reports
Tables
What does "SQL" stand for?
Structured Question Language
Structured Query Language
Simple Query Language
Simple Question Language
Which statement is used to extract data from a database?
Extract
Get
Open
Select
If you were wanting to filter data, which clause would you use?
Where
Order by
From
Select
Using which word allows you to specify that more than one condition must be met in a query?
Also
And
Or
Where
To remove a record from a table which SQL statement would you use?
Remove
Cancel
Delete
Eradicate
Less than or equal to?
>=
=>
=<
<=
Which character returns all the data found in a table?
%
#
*
/
Which example of the field name below is in camel case?
First Name
firstName
FIRSTNAME
firstname
What would the SQL query pictured do?
Find all the men
Find all of the female writers
Find all of Elgar's friends
Find all the male writers
Find all the fish
When examining a row in a table, we refer to it as a...
row number
result number
record
result
Which of the queries is most likely to have produced this result?
ANSWER: SELECT id, name, year FROM movies WHERE year > 2010;
ANSWER: SELECT id, name, year FROM movies WHERE year < 2010;
ANSWER: SELECT * FROM movies WHERE year > 2010;
ANSWER: SELECT id, name, year FROM movies WHERE YEAR > 2010;
SELECT *
_______ CUSTOMER;
A relational database accesses information from one or more...
Spreadsheets
Collections
Matrices
Tables
The SQL statement to retrieve information from a table uses..
CREATE TABLE <table name> (field_name DATATYPE...);
SELECT <field_name> FROM <table name>;
SELECT <table name> FROM <table name>;
CREATE DATABASE <database name>;
How many records are in this table?
7
6
5
4
How many fields are there?
4
5
6
7
What is the ID of the records that are returned when the SQL statement "SELECT * FROM Gymnasts WHERE Name='Xavier'"?
0001
0002
0003
0004
0005
How many records are there in this table?
6
7
9
42
How many fields are there in this table?
6
7
9
42
In what order does SQL process the instructions?
FROM - SELECT - WHERE - ORDER BY
WHERE - FROM - SELECT - ORDER BY
SELECT - FROM - WHERE - ORDER BY
SELECT - FROM - ORDER By - WHERE
What is a field?
A collection of information
A single item of information
A list of information
A group of records
Which symbol would you use to represent more than 50
= 50
< 50
> 50
# 50
When examining a row in a table, we refer to it as a...
row number
result number
record
result
What would the SQL query pictured do?
Find all the men
Find all of the female writers
Find all of Elgar's friends
Find all the male writers
Find all the fish
SELECT *
_______ CUSTOMER;
SQL table names are case sensitive
