
SQL Proficiency
Authored by Isaac dos Santos Moinheiro Freitas
Computers
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the COALESCE function do in SQL?
Returns the first non-null value in a list.
Combines multiple columns into one.
Converts null values to zeros.
Checks if a value exists in a subquery.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a valid SQL aggregate function?
SUM()
MAX()
MIN()
ADD()
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which SQL statement is used to return only different values?
SELECT DISTINCT
SELECT UNIQUE
SELECT DIFFERENT
SELECT VARIETY
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following SQL clauses is used to filter groups of rows after the aggregation is performed?
WHERE
HAVING
GROUP BY
FILTER
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Error: line 1:8: Column 'user_id' cannot be resolved
What does this SQL error message mean and how can it be resolved?
The SQL statement is trying to use user_id in a subquery where it is not available.
The column user_id does not exist in the table being queried.
The user_id column is being referenced without specifying the table alias in a join.
There is a syntax error in the SQL query, possibly due to a missing comma or incorrect keyword.
6.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
How can you limit the number of rows returned in a Query?
(a)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following SQL statements correctly uses a Common Table Expression (CTE) to find the total transaction volume for each user and then uses a SUBQUERY to list user_ids whose total transactions exceed 100,000?
hj
uyy
Answer explanation
The answer on the left doesn't use a Subquery.
Also, don't try to run this in Revolut, we have trillions of transactions and you will reach the time limit of 30 minutes 0-0
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?