SQL Quiz

Quiz
•
Computers
•
10th Grade - University
•
Hard
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
Similar Resources on Wayground
12 questions
IntroToDatabases W2

Quiz
•
University
12 questions
SQL

Quiz
•
11th - 12th Grade
11 questions
Structured Query Language (SQL)

Quiz
•
12th Grade
15 questions
RDBMS & SQL QUERIES

Quiz
•
12th Grade
15 questions
DBMS

Quiz
•
University
14 questions
AQA GCSE Databases and SQL

Quiz
•
9th - 12th Grade
15 questions
Database Features

Quiz
•
11th Grade
15 questions
PHP MySQL

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade