
SQL Query Practice
Authored by Clinton Lough
Information Technology (IT)
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following SQL query: `SELECT Name FROM Students WHERE Age > 18;`. What does this query do?
It provides all details of students aged over 18.
It selects the names of students who are older than 18.
It selects the ages of students who are older than 18.
It selects all students regardless of age.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the SQL query: `SELECT COUNT(*) FROM Orders WHERE Status = 'Shipped';`, what is the purpose of this query?
To count the total number of orders.
To count the number of orders that have been shipped.
To list all orders that have been shipped.
To update the status of orders to 'Shipped'.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query would you use to find the total number of employees in the 'Marketing' department?
`SELECT COUNT(*) FROM Staff WHERE Division = 'Marketing';`
`SELECT SUM(*) FROM Employees WHERE Department = 'Marketing';`
`SELECT TOTAL(*) FROM Workers WHERE Section = 'Marketing';`
`SELECT NUMBER(*) FROM Personnel WHERE Group = 'Marketing';`
4.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What is the correct SQL query to retrieve the an ItemName from the Inventory table of all products that cost above $100?
(a)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the SQL query: `SELECT FirstName, LastName FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID;`. What does this query do?
It lists all customers and their orders.
It lists the first and last names of customers who have placed orders.
It lists all orders regardless of customer.
It lists the first and last name of customers who have not placed any orders.
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?