SQL Subqueries and Functions Quiz

SQL Subqueries and Functions Quiz

Professional Development

12 Qs

quiz-placeholder

Similar activities

MC Demos

MC Demos

Professional Development

12 Qs

SQL PIVOT & UNPIVOT MCQs

SQL PIVOT & UNPIVOT MCQs

Professional Development

15 Qs

OPUS Review

OPUS Review

Professional Development

15 Qs

Teaching Speaking

Teaching Speaking

Professional Development

17 Qs

Intro to ProPresenter 7

Intro to ProPresenter 7

Professional Development

15 Qs

Xenia Overview

Xenia Overview

Professional Development

10 Qs

Path of Learning and 10-24-7

Path of Learning and 10-24-7

KG - Professional Development

10 Qs

Where's the fire?

Where's the fire?

Professional Development

10 Qs

SQL Subqueries and Functions Quiz

SQL Subqueries and Functions Quiz

Assessment

Quiz

Other

Professional Development

Easy

Created by

Harrison Kitema

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes a correlated subquery?

It runs only once and returns a single value.

It is independent of the outer query.

It references columns from the outer query.

It cannot be used in WHERE clauses.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL clause can a subquery not be used in?

SELECT

GROUP BY

WHERE

FROM

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of using a CTE over a subquery?

CTEs are faster.

CTEs allow recursive operations and improve readability.

CTEs are always written inside the FROM clause.

CTEs return multiple result sets.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In SQL, what does the OVER() clause do in a window function?

It joins multiple tables.

It groups rows into a temporary table.

It defines the window of rows for the function to operate on.

It filters results before aggregation.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions is typically used with window functions?

SUM()

COUNT()

ROW_NUMBER()

MAX()

6.

OPEN ENDED QUESTION

3 mins • 1 pt

A subquery can return multiple rows and columns.

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

Window functions always require a GROUP BY clause.

Evaluate responses using AI:

OFF

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?