SQL Quiz

SQL Quiz

12th Grade

14 Qs

quiz-placeholder

Similar activities

PRODUCT DEVELOPMENT EXAM

PRODUCT DEVELOPMENT EXAM

12th Grade

15 Qs

Customer service in hospitality

Customer service in hospitality

11th - 12th Grade

10 Qs

1.1 Market Economies

1.1 Market Economies

9th - 12th Grade

13 Qs

command prompt

command prompt

4th Grade - Professional Development

15 Qs

Command words week 4

Command words week 4

KG - 12th Grade

15 Qs

WP 2016 Competency 1.02 - Basic Editing Key Terms

WP 2016 Competency 1.02 - Basic Editing Key Terms

9th - 12th Grade

13 Qs

Seafreight Induction Quiz Part 1 & 2

Seafreight Induction Quiz Part 1 & 2

12th Grade

12 Qs

Multi color Vinyl Process

Multi color Vinyl Process

9th - 12th Grade

18 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Other

12th Grade

Medium

Created by

Debbie Unterseher

Used 3+ times

FREE Resource

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;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?