DISTINCT
Description
DISTINCT
eliminates duplicate rows from the result.SELECT DISTINCT ON
eliminates rows that match on all the specified expressions.
Click here to navigate to the PostgreSQL documentation page for this syntax.
DISTINCT case
SELECT DISTINCT is supported by Snowflake.
Grammar Syntax
Sample Source Patterns
Input
Output
DISTINCT ON case
The SELECT DISTINCT ON
is translated to SELECT WITH QUALIFY to mimic the functionality.
Grammar Syntax
Sample Source Patterns
Input
Output
Last updated