SQL Quiz

SQL Quiz

University

20 Qs

quiz-placeholder

Similar activities

3450 Midterm Review

3450 Midterm Review

8th Grade - University

22 Qs

MT Business Analytics

MT Business Analytics

University

18 Qs

TES .NET

TES .NET

12th Grade - University

20 Qs

SQL Data Manipulation

SQL Data Manipulation

University

17 Qs

URL-BD1-SegundoParcial

URL-BD1-SegundoParcial

University

20 Qs

DBMS MCQ - 5

DBMS MCQ - 5

University

20 Qs

AlterU - Mysql

AlterU - Mysql

1st Grade - Professional Development

20 Qs

Query Quest

Query Quest

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?

Discover more resources for Other