Lesson 4.10.4.1
4.10.4.1 Structured Query Language (SQL) Quiz: AQA Computer Science, Unit 10
20 questions
In partnership with Revision Ninja
Lesson 4.10.4.1, Structured Query Language (SQL): 20 multiple choice questions for the AQA Computer Science (7517), Unit 10: Fundamentals of databases, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
Which SQL command is used to retrieve data from a database table?
- EXTRACT
- GET
- FETCH
- SELECT
-
Which SQL clause is used to insert new records into a database table?
- APPEND TO
- INSERT INTO
- ADD ROW
- CREATE ROW
-
Which SQL command is used to modify existing data records within a table?
- UPDATE
- ALTER
- CHANGE
- MODIFY
-
Which SQL clause filters records to restrict which rows are affected or returned?
- LIMIT
- FILTER
- HAVING
- WHERE
-
Which attribute is returned by the query 'SELECT Name FROM Customer WHERE City = 'York''?
- Name
- City
- York
- Customer
-
Which SQL command is used to define a new table structure in a database?
- NEW TABLE
- CREATE TABLE
- DEFINE TABLE
- MAKE TABLE
-
Which SQL keyword specifies the field values being added in an INSERT command?
- SET
- DATA
- FIELDS
- VALUES
-
Which SQL command is used to remove records from a database table?
- REMOVE FROM
- DROP TABLE
- ERASE FROM
- DELETE FROM
-
Which SQL keyword specifies the new field values to apply in an UPDATE statement?
- SET
- VALUES
- TO
- INTO
-
Which SQL clause combines records from two tables based on a related column?
- LINK TABLES
- MERGE WITH
- UNION ALL
- INNER JOIN
-
Which SQL clause arranges identical data into groups for aggregate functions like COUNT?
- ALIGN BY
- GROUP BY
- SORT BY
- ORDER BY
-
Which SQL keyword sorts query results from highest value to lowest value?
- DOWN
- HIGH
- DESC
- ASC
-
Which SQL command completely removes a table and its structure from a database?
- DROP TABLE
- REMOVE TABLE
- DELETE FROM
- TRUNCATE TABLE
-
Which SQL keyword is used to combine rows from two or more tables based on a related column?
- MERGE
- UNION
- JOIN
- GROUP BY
-
Which SQL clause is used to sort the result set of a query?
- GROUP BY
- SORT BY
- ORDER BY
- ALIGN BY
-
Which SQL join type includes all records from the left table even if there are no matches?
- CROSS JOIN
- LEFT JOIN
- INNER JOIN
- RIGHT JOIN
-
Which SQL keyword links a foreign key in one table to a primary key in another?
- LINKS TO
- CONNECTS
- FOREIGN KEY
- REFERENCES
-
What is the main purpose of the DISTINCT keyword in a SQL SELECT statement?
- Remove duplicate rows
- Sort output values
- Filter null values
- Group related records
-
What happens if an UPDATE statement is executed without a WHERE clause?
- No records change
- All records change
- First record changes
- Query throws error
-
Which SQL condition correctly checks whether a column contains no value?
- = NULL
- IS EMPTY
- = ''
- IS NULL
Related quizzes
- Entity relationship modelling Quiz · 4.10.1.1 · 20 questions
- Relational databases Quiz · 4.10.2.1 · 20 questions
- Database design and normalisation Quiz · 4.10.3.1 · 20 questions
- Client server databases Quiz · 4.10.5.1 · 20 questions
- Data types Quiz · 4.1.1.1 · 20 questions
- Big Data Quiz · 4.11.1.1 · 20 questions
- Function types and first-class objects Quiz · 4.12.1.1 · 20 questions
- Analysis Quiz · 4.13.1.1 · 20 questions
- Data structures and abstract data types Quiz · 4.2.1.1 · 20 questions
- Breadth-first and depth-first search Quiz · 4.3.1.1 · 20 questions