GCSE Databases and SQL 2

GCSE Databases and SQL 2

9th - 10th Grade

16 Qs

quiz-placeholder

Similar activities

1 Syntax and Variables

1 Syntax and Variables

9th Grade

20 Qs

Databases

Databases

9th - 10th Grade

16 Qs

Database concepts

Database concepts

10th - 12th Grade

20 Qs

N3 Programming Quiz

N3 Programming Quiz

9th - 10th Grade

15 Qs

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

Python Programming: Functions and Procedures

Python Programming: Functions and Procedures

9th - 11th Grade

12 Qs

Creating a Database

Creating a Database

7th - 9th Grade

15 Qs

GCSE Databases and SQL 2

GCSE Databases and SQL 2

Assessment

Quiz

Computers

9th - 10th Grade

Hard

Created by

Konrad Meij

Used 4+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how do you select all the columns from a table named "Persons"?

FROM Persons SELECT*

SELECT all FROM Persons

SELECT * LIKE Persons

SELECT * FROM Persons

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which SQL statement which will display the registration numbers and make of all cars with 5 doors made in 2011 or after?

SELECT CarRegistration, Make FROM Cars LIKE Doors = 5 OR Year >= 2011

SELECT CarRegistration, Make FROM Cars WHERE Doors = 5 AND Year <= 2011

SELECT CarRegistration, Make FROM Cars WHERE Doors = 5 AND Year >= 2011

FROM CarRegistration, Make SELECT Cars WHERE Doors = 5 AND Year >= 2011

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Write he missing code to an SQL query to find all teachers from the 'Teachers' table, whose surname begins with ‘B’ and whose title is ‘Mr’. Show all fields from the table.

SELECT*

FROM Teachers

WHERE

Surname LIKE 'B*' AND Title = 'Mr'

Surname LIKE 'B*' AND 'Mr'

Surname LIKE 'B*' Title = 'Mr'

Surname LIKE 'B*' OR Title = 'Mr'

4.

FILL IN THE BLANK QUESTION

2 mins • 3 pts

Media Image

In the 'members' table, output the first and last name of everyone from Ipswich. Remember that the answer is case sensitive

NB: use single apostrophes (eg. 'Woodbridge')

NB: Put a space after a comma, but no space before the comma (eg. Gender, Town)

5.

FILL IN THE BLANK QUESTION

2 mins • 3 pts

Media Image

In the 'Dogs' table, write an SQL statement to select all the names and breeds of female dogs.

NB: Use single apostrophes (eg. 'Black') with no spaces

NB: Put a space after a comma, but no space before the comma (eg. Gender, Town)

6.

FILL IN THE BLANK QUESTION

2 mins • 3 pts

Media Image

In the 'Dogs' table, write an SQL statement to select all fields for dogs older than four (including those aged four).

7.

DRAG AND DROP QUESTION

1 min • 2 pts

Media Image

In the 'members' table, output all the fields of everyone from Colchester or Ipswich. Remember that the answer is case sensitive.

​ (a)   * ​ (b)   members ​ (c)   Town = 'Colchester' ​ (d)   Town = 'Ipswich'

FROM
WHERE
OR
SELECT
LIKE
THAT
AND

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?