SQL Quiz

SQL Quiz

University

20 Qs

quiz-placeholder

Similar activities

Query Quest

Query Quest

University

20 Qs

3450 Midterm Review

3450 Midterm Review

8th Grade - University

22 Qs

3450 Web Design

3450 Web Design

University

15 Qs

Owl house quiz

Owl house quiz

KG - Professional Development

17 Qs

Cơ sở dữ liệu

Cơ sở dữ liệu

University

15 Qs

UDL3612 Online Quiz (2)

UDL3612 Online Quiz (2)

University

20 Qs

SQL Data Manipulation

SQL Data Manipulation

University

17 Qs

DBMS MCQ - 5

DBMS MCQ - 5

University

20 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Other

University

Medium

Created by

33KAZ undefined

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which join type results in a Cartesian product?

FULL OUTER JOIN

RIGHT JOIN

CROSS JOIN

LEFT JOIN

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used to combine the result sets of two or more SELECT queries, removing duplicates?

ЕХСЕРТ

INTERSECT

UNION

JOIN

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of join includes all rows from the left table and only the matching rows from the right table?

LEFT JOIN

FULL JOIN

RIGHT JOIN

INNER JOIN

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to rename a column in a SELECT statement using an alias?

SELECT alias_name FROM column_name

RENAME column_name TO alias_name

SELECT column_name AS alias_name

WITH column_name AS alias_name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL function returns the sum of values in a column?

SUM()

COUNT)

AVG()

MIN()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using aliases in SQL?

To filter data

To delete records from tables

To provide temporary names for columns or tables for easier reference

To create new columns in a result set

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for using the UNION keyword in SQL?

SELECT * FROM tableA EXCEPT SELECT * FROM tableB;

SELECT * FROM tableA UNION SELECT * FROM tableB;

SELECT * FROM tableA JOIN tableB;

SELECT * FROM tableA UNION ALL SELECT * FROM tableB;

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?