Details

    • Sub-task
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • SQL

    Description

      In a SELECT statement, the QUALIFY clause filters the results of window functions.

      QUALIFY does with window functions what HAVING does with aggregate functions and GROUP BY clauses.

      In the execution order of a query, QUALIFY is therefore evaluated after window functions are computed.

      Examples:
      https://docs.snowflake.com/en/sql-reference/constructs/qualify.html#examples

      More details:
      https://docs.snowflake.com/en/sql-reference/constructs/qualify.html
      https://docs.teradata.com/reader/2_MC9vCtAJRlKle2Rpb0mA/19NnI91neorAi7LX6SJXBw

      Attachments

        Activity

          People

            Unassigned Unassigned
            yumwang Yuming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: