SQL Quiz

SQL Quiz

University

20 Qs

quiz-placeholder

Similar activities

Issue Tracker

Issue Tracker

KG - University

20 Qs

THMM 2

THMM 2

University

20 Qs

Malaysian Cultural Trivia Challenge

Malaysian Cultural Trivia Challenge

University

20 Qs

Investment and Portfolio Management Midterm Examination

Investment and Portfolio Management Midterm Examination

University

16 Qs

Midterm examination BEED 2B

Midterm examination BEED 2B

University

18 Qs

From Code to Cloud Workshop

From Code to Cloud Workshop

University

20 Qs

Minecraft Quiz

Minecraft Quiz

KG - University

18 Qs

Ecosystem Services

Ecosystem Services

University

17 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

33KAZ undefined

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?