ExamGecko
Question list
Search
Search

Question 33 - DSA-C02 discussion

Report
Export

Which of the Following is not type of Windows function in Snowflake?

A.
Rank-related functions.
Answers
A.
Rank-related functions.
B.
Window frame functions.
Answers
B.
Window frame functions.
C.
Aggregation window functions.
Answers
C.
Aggregation window functions.
D.
Association functions.
Answers
D.
Association functions.
Suggested answer: C, D

Explanation:

Window Functions

A window function operates on a group (''window'') of related rows.

Each time a window function is called, it is passed a row (the current row in the window) and the window of rows that contain the current row. The window function returns one output row for each input row. The output depends on the individual row passed to the function and the values of the other rows in the window passed to the function.

Some window functions are order-sensitive. There are two main types of order-sensitive window functions:

Rank-related functions.

Window frame functions.

Rank-related functions list information based on the ''rank'' of a row. For example, if you rank stores in descending order by profit per year, the store with the most profit will be ranked 1; the second-most profitable store will be ranked 2, etc.

Window frame functions allow you to perform rolling operations, such as calculating a running total or a moving average, on a subset of the rows in the window.

asked 23/09/2024
Josie Moha
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first