
SQL TREASURE HUNT
Quiz
•
Engineering
•
University
•
Practice Problem
•
Hard
ARUNADEVI FXADT007
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SELECT Location, SUM(Quantity) FROM Inventory GROUP BY Location HAVING COUNT(DISTINCT ItemName) > 1;
Which location has more than one distinct item and what is the sum of the quantities there?
Warehouse A, 15
Warehouse B, 35
Warehouse A, 25
Warehouse B, 25
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The minimum number of tables needed to represent M, N, P, R1, and R2 is
2
3
4
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query will find orders placed in the last 30 days that have no matching customer?
SELECT order_id FROM Orders
WHERE order_date >= CURDATE() - INTERVAL 30 DAY
AND customer_id IS NULL;
SELECT o.order_id FROM Orders o
LEFT JOIN Customers c ON o.customer_id = c.customer_id
WHERE c.customer_id IS NULL AND o.order_date >= CURDATE() - INTERVAL 30 DAY;
SELECT order_id FROM Orders
WHERE order_date >= DATE_SUB(NOW(), INTERVAL 30 DAY);
SELECT o.order_id FROM Orders o
JOIN Customers c ON o.customer_id = c.customer_id
WHERE o.order_date >= CURDATE() - INTERVAL 30 DAY;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SELECT ProductID FROM Sales GROUP BY ProductID HAVING COUNT(DISTINCT SaleDate) > 2;
Which product ID was sold on more than two distinct dates?
101
102
103
None
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is the minimum number of table needed ?
one
two
four
three
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query will return transactions with a NULL amount?
SELECT * FROM Transactions WHERE amount = 0;
SELECT * FROM Transactions WHERE amount = NULL;
SELECT * FROM Transactions WHERE amount IS NULL;
SELECT * FROM Transactions WHERE amount NOT NULL;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which query correctly retrieves these products?
SELECT p.product_id, p.name FROM Products p
JOIN Discounts d ON p.product_id = d.product_id
WHERE d.discount_percentage > 50 AND p.category = 'Luxury';
SELECT p.product_id, p.name FROM Products p
WHERE discount_percentage > 50 AND category = 'Luxury';
SELECT p.product_id, p.name FROM Discounts d
WHERE discount_percentage > 50 AND category = 'Luxury';
SELECT product_id, name FROM Products
WHERE discount_percentage > 50 OR category = 'Luxury';
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Computer Networks CT-2
Quiz
•
University
20 questions
Code Sprint '25
Quiz
•
University
17 questions
Sistemas de control
Quiz
•
University
15 questions
Web3 and Blockchain Challenge
Quiz
•
University
15 questions
TECH WHIZ
Quiz
•
University
20 questions
CHE433-V01-Prelim
Quiz
•
University
15 questions
Dioda
Quiz
•
11th Grade - University
15 questions
ELECTRO 1 SW 1 BROMINE
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Engineering
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
