
SQL Where,GB,Having,OB Part 3
Authored by Nidhi Singh
Computers
5th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following SQL query do?
Shows all shipped orders sorted by the date they were placed.
Shows all orders sorted by status.
Shows all orders, including canceled ones.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following SQL query do?
Show all products with prices under $20.
Show products with an average price of $20 or more.
Show products with an average price below $20.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which SQL statement will return all orders placed by customers from "New York"?
SELECT * FROM Orders ORDER BY City;
SELECT * FROM Orders WHERE City = 'New York';
SELECT * FROM Orders HAVING City = 'New York';
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following SQL query return?
Departments with 3 or more employees.
All employees sorted by department.
Departments with fewer than 3 employees.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If you want to group students by their grades and find out how many students are in each grade, which clause do you need?
WHERE
HAVING
ORDER BY
GROUP BY
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How can you find the maximum price of items in a store?
SELECT MAX(Price) FROM Items;
SELECT * FROM Items ORDER BY Price;
SELECT Price FROM Items WHERE MAX(Price);
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If you want to see all customers who made purchases in 2024, which SQL statement would you use?
SELECT * FROM Customers WHERE PurchaseYear = 2024;
SELECT * FROM Customers WHERE YEAR(PurchaseDate) = 2024;
SELECT * FROM Customers ORDER BY PurchaseDate;
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
10 questions
Computer Basic
Quiz
•
4th - 10th Grade
10 questions
VPN
Quiz
•
1st - 5th Grade
9 questions
MinecraftPython Test 1
Quiz
•
5th - 6th Grade
10 questions
ICT 5 EPP
Quiz
•
5th - 6th Grade
10 questions
Week 2 HCI
Quiz
•
3rd - 5th Grade
10 questions
Revision 1
Quiz
•
1st - 10th Grade
13 questions
G Suite
Quiz
•
4th Grade - Professio...
11 questions
CAPE Digital Tools Keyboard Shortcuts
Quiz
•
3rd - 5th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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