0% found this document useful (0 votes)
14 views

Query Syntax - Snowflake

The document discusses the basic query syntax supported by Snowflake including SELECT statements, FROM, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT and other clauses. It also lists related topics for additional details.

Uploaded by

demorepo99
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Query Syntax - Snowflake

The document discusses the basic query syntax supported by Snowflake including SELECT statements, FROM, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT and other clauses. It also lists related topics for additional details.

Uploaded by

demorepo99
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

4/29/24, 2:54 PM Query Syntax | Snowflake Documentation

Reference SQL Command Reference Query Syntax


Query Syntax
Snowflake supports querying using standard SELECT statements and the following
basic syntax:
[ WITH ... ] Copy
SELECT
[ TOP <n> ]
...
[ INTO ... ]
[ FROM ...
[ AT | BEFORE ... ]
[ CHANGES ... ]
[ CONNECT BY ... ]
[ JOIN ... ]
[ ASOF JOIN ... ]
[ LATERAL ... ]
[ MATCH_RECOGNIZE ... ]
[ PIVOT | UNPIVOT ... ]
[ VALUES ... ]
[ SAMPLE ... ] ]
[ WHERE ... ]
[ GROUP BY ...
[ HAVING ... ] ]
[ QUALIFY ... ]
[ ORDER BY ... ]
[ LIMIT ... ]

Next Topics:
WITH
TOP <n>
INTO
FROM
AT | BEFORE
CHANGES
CONNECT BY
JOIN
ASOF JOIN
LATERAL
https://docs.snowflake.com/en/sql-reference/constructs 1/1

You might also like