SQL Quiz

SQL Quiz

10th Grade - University

10 Qs

quiz-placeholder

Similar activities

k12 bai4

k12 bai4

12th Grade

10 Qs

Introduction to AI - Healthcare & Business

Introduction to AI - Healthcare & Business

University - Professional Development

10 Qs

PAS GANJIL 2024

PAS GANJIL 2024

11th Grade

10 Qs

Chapter 2 Testing Throughout the SDLC

Chapter 2 Testing Throughout the SDLC

University

9 Qs

Internet_Intranet_Extranet

Internet_Intranet_Extranet

University

10 Qs

BTEC DIT C3 B1 - Threats to Data

BTEC DIT C3 B1 - Threats to Data

11th Grade

11 Qs

DAA quiz2

DAA quiz2

University

15 Qs

Access

Access

1st - 10th Grade

10 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Computers

10th Grade - University

Hard

Created by

Peter Astbury

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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

Already have an account?