ExamGecko
Question list
Search
Search

Question 491 - SnowPro Core discussion

Report
Export

What are valid sub-clauses to the OVER clause for a window function? (Select TWO).

A.

GROUP BY

Answers
A.

GROUP BY

B.

LIMIT

Answers
B.

LIMIT

C.

ORDER BY

Answers
C.

ORDER BY

D.

PARTITION BY

Answers
D.

PARTITION BY

E.

UNION ALL

Answers
E.

UNION ALL

Suggested answer: C, D

Explanation:

Valid sub-clauses to the OVER clause for a window function in SQL are:

C . ORDER BY: This clause specifies the order in which the rows in a partition are processed by the window function. It is essential for functions that depend on the row order, such as ranking functions.

D . PARTITION BY: This clause divides the result set into partitions to which the window function is applied. Each partition is processed independently of other partitions, making it crucial for functions that compute values across sets of rows that share common characteristics.

These clauses are fundamental to defining the scope and order of data over which the window function operates, enabling complex analytical computations within SQL queries.

Snowflake Documentation: Window Functions

asked 29/10/2024
Joyce Ann Devilles
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first