SQL Joins Test - 2

SQL Joins Test - 2

University

15 Qs

quiz-placeholder

Similar activities

Quiz 4: MySQL Database

Quiz 4: MySQL Database

University

10 Qs

DBMS Lab Quiz 1 2B3

DBMS Lab Quiz 1 2B3

University

10 Qs

Bab 5 Query MySQL

Bab 5 Query MySQL

University

19 Qs

SYS 1591

SYS 1591

University

10 Qs

hive quiz IT final year skit jaipur

hive quiz IT final year skit jaipur

University

16 Qs

PTS DMI

PTS DMI

12th Grade - University

10 Qs

UTS Basis Data II - ITM

UTS Basis Data II - ITM

University

15 Qs

P1. Prelim Project Quiz

P1. Prelim Project Quiz

University

20 Qs

SQL Joins Test - 2

SQL Joins Test - 2

Assessment

Quiz

Computers

University

Medium

Created by

Vikas Bandaru

Used 13+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the result of the following SQL query: SELECT COUNT(*) FROM customers;
The number of columns in the customers table will be returned.
The sum of all values in the customers table will be returned.
The total number of rows in the customers table will be returned.
The total number of columns and rows in the customers table will be returned.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which keyword is used to sort the result set in descending order in SQL?
SORT
ASC
DESC
ORDER BY DESC

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following SQL query: SELECT AVG(price) FROM products;
The average of the price column from the products table will be returned.
The total price of all products in the products table will be returned.
The maximum price of all products in the products table will be returned.
The minimum price of all products in the products table will be returned.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between the UNION and UNION ALL operators in SQL?
The UNION operator removes duplicate rows, while UNION ALL does not.
The UNION operator combines only rows that have matching columns, while UNION ALL combines all rows.
The UNION operator is used to combine columns from different tables, while UNION ALL is used to combine rows from different tables.
There is no difference between the UNION and UNION ALL operators.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the result of the following SQL query: SELECT * FROM customers WHERE age BETWEEN 18 AND 25;
All rows from the customers table where age is less than 18 or greater than 25 will be returned.
All rows from the customers table where age is between 18 and 25 (inclusive) will be returned.
All rows from the customers table where age is greater than 18 and less than 25 will be returned.
All rows from the customers table where age is not between 18 and 25 will be returned.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which keyword is used to specify a condition in a SQL query?
SELECT
FROM
WHERE
WHERE is used to specify a condition in a SQL query.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the result of the following SQL query: SELECT DISTINCT city FROM customers;
All unique cities from the customers table will be returned.
All rows from the customers table where city is not null will be returned.
All rows from the customers table where city is null will be returned.
All rows from the customers table where city is not unique will be returned.

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?