SQL Quiz
Quiz
•
Computers
•
10th Grade - University
•
Hard
Peter Astbury
Used 3+ times
FREE Resource
Enhance your content in a minute
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
INTERNET CONNECTION
Quiz
•
12th Grade
14 questions
[Lớp 12] Access - Ôn tập
Quiz
•
12th Grade
15 questions
Virtual Private Server
Quiz
•
12th Grade
10 questions
YT-Quiz
Quiz
•
University
10 questions
หน่วยที่ 1 ความรู้เบื้องต้นเกี่ยวกับเครื่องพิมพ์ดีด
Quiz
•
9th - 12th Grade
10 questions
Memahami HTML
Quiz
•
10th Grade
10 questions
Data Warehouse - Foundations
Quiz
•
University
13 questions
Digital Technology Office 365 - 29May2020
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
