Quiz

Quiz: SQL Basics - SELECT, WHERE, ORDER BY and Aggregates

OCR H446 Computer Science Specification

Ready to start this lesson?

Sign in to track your progress. 11 steps including 9 interactive questions.

Sign In to Start Learning
11 Steps9 Questions

Students also studied

Browse all

Steps in this lesson (11)

1
Text

Welcome! Building on your knowledge of databases and SQL, let's focus on testing your understanding of SELECT, WHERE, ORDER BY, and aggregates.

2
Multiple ChoiceInteractive

Which SQL keyword is used to specify the columns to retrieve from a table?

Start the lesson to answer this multiple choice question

3
Multi-SelectInteractive

Which of the following are valid SQL aggregate functions? (Select all that apply)

Start the lesson to answer this multi-select question

4
Fill in the BlankInteractive

To filter rows in an SQL query, you use the {{blank0}} clause.

Start the lesson to answer this fill in the blank question

5
MatchingInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this matching question

6
Math EquationInteractive

What is the result of COUNT(*) if a table has 15 rows?

Start the lesson to answer this math equation question

7
Code CompletionInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this code completion question

8
typedAnswer

Match the items on the left with their correct pairs on the right

9
Multiple ChoiceInteractive

Which clause is used to group rows when applying aggregate functions?

Start the lesson to answer this multiple choice question

10
Multi-SelectInteractive

Which of the following SQL statements will retrieve rows where 'age' is greater than 18? (Select all that apply)

Start the lesson to answer this multi-select question

11
Fill in the BlankInteractive

The {{blank0}} function in SQL calculates the total of numeric values in a column.

Start the lesson to answer this fill in the blank question

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Explore More Topics