Distinct
Distinction is critical if you want to stand out from the crowd
Description
Syntax
SELECT [ DISTINCT ] { named_expression | star_clause } [, ...]
FROM table_referenceSELECT [ DISTINCT ]
{
[{<object_name>|<alias>}.]<col_name>
| [{<object_name>|<alias>}.]$<col_position>
| <expr>
}
[ [ AS ] <col_alias> ]
[ , ... ]
[ ... ]Sample Source Patterns
Setup data
Databricks
CREATE TEMPORARY VIEW number1(c) AS VALUES (3), (1), (2), (2), (3), (4);Snowflake
CREATE TEMPORARY TABLE number1(c int);
INSERT INTO number1 VALUES (3), (1), (2), (2), (3), (4);Pattern code
Databricks
c
Snowflake
c
Known Issues
Related EWIs
Last updated
