SQL Quiz

SQL Quiz

10th Grade - University

10 Qs

quiz-placeholder

Similar activities

GCSE 2.2 SQL

GCSE 2.2 SQL

9th - 11th Grade

12 Qs

SQL

SQL

12th Grade

15 Qs

SQL SELECT

SQL SELECT

8th - 10th Grade

10 Qs

SQL- Join, Group by, having

SQL- Join, Group by, having

9th - 12th Grade

10 Qs

SQL

SQL

9th - 11th Grade

10 Qs

soal bab 3 kelompok 3

soal bab 3 kelompok 3

12th Grade

15 Qs

I14quiz

I14quiz

University

14 Qs

SQL Queries

SQL Queries

University

10 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Computers

10th Grade - University

Hard

Created by

Peter Astbury

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this SQL query do?

SELECT * FROM customers;

Delete all customer's data

Update all customers to be called *

Find all data held about all customers.

Delete the customers table.

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which statements are true about this SQL query?

DELETE FROM customers WHERE id=8;

Data is deleted from the customers table.

Data in the customers table is edited.

Only customer with id number 8 is effected.

All customers are effected.

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

What word is missing from this query to remove the customers table.

................ TABLE customers;

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

What word is missing from this table to select all customers from the Jones family.

SELECT * FROM customers .............. family="Jones";

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this query do?

SELECT shop.name FROM shops INNER JOIN staff ON staff.shop = shop.id WHERE staff.name="John Smith";

Identify the name of the shop where John Smith works.

Assign John Smith to work at a specific shop.

List the staff who work at all shops.

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

What is the missing word in this query to show how many staff work at each shop?

SELECT COUNT(id) FROM staff .............BY shop;

7.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Write an SQL query to delete all data from the staff table.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?