20 October 2018        Add to Favorites   Report

How to SELECT TOP n rows from Snowflake

I spent a good amount of career working on Teradata, I was wondering if we have any equivalent to TOP function in Snowflake

To select top 10 rows from a table:

SELECT * FROM Customers LIMIT 10;

or 

SELECT * FROM Customers FETCH 10;

Not sure why they two commands for the same purpose, But both of them just works.


Read great educational content like this and a lot more ! Create my free account now 🎁

Copied