SQL Quiz

SQL Quiz

University

33 Qs

quiz-placeholder

Similar activities

Uji Pemahaman Basis Data

Uji Pemahaman Basis Data

University

28 Qs

CertyIQ - Google - Prof Data Eng - pt 7

CertyIQ - Google - Prof Data Eng - pt 7

University

30 Qs

Dr Kalyan's - Quiz on Dbase & SQL

Dr Kalyan's - Quiz on Dbase & SQL

University

30 Qs

QUIZ TUTORIAL: SQL QUERIES

QUIZ TUTORIAL: SQL QUERIES

University

30 Qs

Break the Query Round-1

Break the Query Round-1

University

30 Qs

MidExWT-CS2101

MidExWT-CS2101

University

35 Qs

UAS-BD-GSL2324A

UAS-BD-GSL2324A

University

32 Qs

DBMS MCQs Quiz

DBMS MCQs Quiz

University

30 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Emily Anne

Used 1+ times

FREE Resource

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL clause is used to filter records after a GROUP BY operation?

WHERE

HAVING

FILTER

ORDER BY

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a JOIN in SQL?

To combine data from multiple tables into one result set

To delete rows from a table

To update data in a table

To create a new table from existing data

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a subquery in SQL?

A) A query that retrieves data from a single table

B) A query that returns a single value for use in another query

C) A query that joins two or more tables together

D) A query that performs complex joins

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of using DISTINCT in a SELECT statement?

Removes duplicate rows in the result set

Groups data based on a column

Sorts the result set in ascending order

Limits the number of rows returned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the RANK() window function do?

It assigns a unique rank to each row in a result set, without ties.

It assigns a rank based on the order of the rows, with ties given the same rank.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about UNION in SQL?

UNION returns only the distinct records from both queries

UNION returns all records from both queries, including duplicates

UNION requires the same number of columns and data types in both queries

UNION does not allow sorting of the result set

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the effect of the GROUP BY clause?

It filters rows based on conditions

It combines rows that have the same values into summary rows

It sorts the result set in ascending order

It limits the number of rows 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?