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?

SQL Quiz

Quiz
•
Other
•
12th Grade
•
Medium
Debbie Unterseher
Used 3+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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;
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Marketing

Quiz
•
9th - 12th Grade
10 questions
Google Sketch-Up Tools Quiz #1 Grades 9-12

Quiz
•
9th - 12th Grade
19 questions
Marketing

Quiz
•
9th - 12th Grade
10 questions
Olympiad practice

Quiz
•
9th - 12th Grade
11 questions
[U3C1L1] Command and Staff Roles

Quiz
•
9th - 12th Grade
10 questions
Discord quiz 2021

Quiz
•
3rd Grade - Professio...
15 questions
N5 Understanding Business

Quiz
•
7th - 12th Grade
18 questions
Device Upgrade Programs

Quiz
•
KG - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade