
SQL Query Quiz

Quiz
•
Computers
•
1st Grade
•
Medium
Fajar Dziki
Used 3+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following queries returns 'Palo Alto'?
SELECT customer_city FROM Customers WHERE customer_name = 'Hayes';
SELECT customer_city FROM Customers WHERE customer_name = 'Johnson';
SELECT customer_city FROM Customers WHERE customer_street = 'Main';
SELECT customer_city FROM Customers WHERE customer_street = 'Park';
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which query lists all the unique cities?
SELECT customer_city FROM Customers;
SELECT DISTINCT customer_city FROM Customers;
SELECT UNIQUE customer_city FROM Customers;
SELECT customer_city GROUP BY customer_city FROM Customers;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which query returns the names of all customers in 'Rye'?
SELECT customer_name FROM Customers WHERE customer_city = 'Rye';
SELECT customer_name FROM Customers WHERE customer_city = 'Harrison';
SELECT customer_name FROM Customers WHERE customer_street = 'North';
SELECT customer_name FROM Customers WHERE customer_street = 'Main';
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which query returns all the information for 'Turner'?
SELECT * FROM Customers WHERE customer_name = 'Turner';
SELECT * FROM Customers WHERE customer_city = 'Stamford';
SELECT customer_name, customer_street FROM Customers WHERE customer_name = 'Turner';
SELECT customer_city, customer_street FROM Customers WHERE customer_name = 'Turner';
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which query finds customers whose names start with 'J'?
SELECT customer_name FROM Customers WHERE customer_name LIKE 'J';
SELECT customer_name FROM Customers WHERE customer_name LIKE 'J%';
SELECT customer_name FROM Customers WHERE customer_name LIKE '%J';
SELECT customer_name FROM Customers WHERE customer_name = 'J';
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which query counts the number of customers in each city?
SELECT customer_city, COUNT(*) FROM Customers;
SELECT customer_city, COUNT(*) FROM Customers GROUP BY customer_city;
SELECT COUNT(*), customer_city FROM Customers GROUP BY customer_city;
SELECT customer_city, SUM(*) FROM Customers;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which query lists all street names alphabetically?
SELECT customer_street FROM Customers ORDER BY customer_street;
SELECT customer_street FROM Customers SORT BY customer_street;
SELECT customer_street FROM Customers ORDER customer_street;
SELECT customer_street FROM Customers GROUP BY customer_street;
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Parts of a Computer

Quiz
•
KG - 3rd Grade
10 questions
Uses of computer

Quiz
•
1st Grade
11 questions
BTEC DIT: Revision 1-6

Quiz
•
1st - 12th Grade
10 questions
Personal Pronouns

Quiz
•
1st - 10th Grade
12 questions
TC SDS Challenge

Quiz
•
1st - 5th Grade
10 questions
Parts of the computer - 1 Summative

Quiz
•
1st - 2nd Grade
18 questions
Keyboard keys and formatting in MS Word

Quiz
•
1st - 2nd Grade
13 questions
Digital Kiosks Quiz

Quiz
•
1st Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade