SQL Window Functions

SQL Window Functions

Assessment

Quiz

Professional Development

University

Medium

Used 37+ times

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Does a window function require the use of Group By?
Yes
No
Depends on the function
Depends on the number of impacted records

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To narrow a window function's application to a subgroup within a data set, use __________.
OVER
SUBGROUP
PARTITION BY
SECTION

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the term used to identify all rows after the current row in a partition.
FINAL ROW
UNBOUNDED FOLLOWING
END RANGE
CONTINUE TO END

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following options is not a window function?
ROW_NUMBER()
SUM()
LEAD()
RUN_TOTAL()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following options is not a method for numbering or ranking records?
NUMBER()
RANK()
ROW_NUMBER()
DENSE_RANK()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an order clause is included, but a window frame is not, which option will be the default frame?
There is not one - you must include a window frame
ROWS BETWEEN CURRENT ROW AND CURRENT ROW
RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following options is not true about a WINDOW clause?
It avoids repetition when creating multiple window functions
It comes before the ORDER BY clause
It can create an alias for shared PARTITION BY and ORDER BY clauses
It comes before the WHERE clause

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?