
SQL Quiz
Quiz
•
Other
•
12th Grade
•
Practice Problem
•
Medium
Debbie Unterseher
Used 3+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Imagine you are a database administrator for a retail company. You need to generate a report that includes all details from the 'Customers' table. Which SQL command would you use?
SELECT * FROM Customers;
INSERT INTO Customers;
UPDATE Customers SET ContactName;
SELECT Country FROM Customers;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL command is used to select only unique countries from the Customers table?
SELECT Country FROM Customers;
SELECT DISTINCT Country FROM Customers;
SELECT * FROM Customers WHERE Country='Germany';
SELECT * FROM Customers ORDER BY Country;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Imagine you are managing a database for a bookstore. How would you correctly update the contact name to 'Alfred Smith' for a customer with CustomerID = 1?
UPDATE Customers SET ContactName='Alfred Smith' WHERE CustomerID = 1;
INSERT INTO Customers SET ContactName='Alfred Smith';
SELECT * FROM Customers WHERE ContactName='Alfred Smith';
UPDATE Customers SET ContactName='Juan';
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Imagine you're a database administrator for a bookstore. You need to add a new customer, John Doe, who is 30 years old and lives in the USA, into the Customers table. Which SQL statement would you use?
UPDATE Customers (customer_id, first_name, last_name, age, country) VALUES (5, 'John', 'Doe', '30', 'USA');
UPDATE Customers SET first_name = 'John', last_name = 'Doe', age = '30', country = 'USA' WHERE customer_id = 5;
INSERT INTO Customers (first_name, last_name, age, country) VALUES ('John', 'Doe', '30', 'USA');
SELECT * INTO Customers FROM (SELECT 'John', 'Doe', '30', 'USA);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Imagine you are managing an online bookstore. How can you display ONLY the book titles from the Books table?
SELECT titles FROM Books;
SELECT * FROM Books;
DISPLAY titles FROM Books;
Select FROM Books ORDER BY title;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Imagine you are a database administrator for a library. You need to display all of the records from the Members table in order by last name in descending order. Which SQL query would you use?
SELECT * FROM Members ORDER BY last_name DESC;
SELECT * FROM Members SORT BY last_name DESC;
SELECT * FROM Members ORDER BY DESCENDING last_name;
SELECT * FROM Members WHERE ORDER BY DESC last_name;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Imagine you are a database administrator for a retail company. You want to send a special promotional email to all young customers. What SQL statement would you use to select all customers from the database where the customer age is less than 25?
SELECT * FROM Customers WHERE age < 25;
SELECT * FROM Customers WHERE age <= 25;
SELECT * FROM Customers WHERE age > 25;
SELECT * FROM Customers WHERE age = 25;
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
15 questions
Data Collection
Quiz
•
12th Grade
10 questions
HS Ch1
Quiz
•
7th - 12th Grade
17 questions
Musical Terms
Quiz
•
5th Grade - Professio...
10 questions
Driving Theory Test: Alertness
Quiz
•
KG - Professional Dev...
15 questions
will be doing/will have done
Quiz
•
8th - 12th Grade
17 questions
Relational Pedagogy & Respectful Practice
Quiz
•
12th Grade
15 questions
Skill India Mission and Youth Empowerment
Quiz
•
12th Grade - University
10 questions
Anime
Quiz
•
KG - University
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
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade
