Download as pdf or txt
Download as pdf or txt
You are on page 1of 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