Snowflake Vs MS-SQL - Part 103 - ORDER BY ALL - SORTING

 


ORDER BY ALL - SORTING

When we fetch data, we sometimes need to sort it. If there are limited columns, then it is fine. Suppose there are multiple columns, then you have to mention the entire list of columns in an order by clause, which is a tedious job.

MS-SQL Server

We can achieve it as follows:



In Snowflake we can use a similar approach as above; however, we can make use of ORDER BY ALL as follows:




For more details, refer to the ORDER BY ALL section.


Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Series

Snowflake Vs MS-SQL - Part 79 - Adding a comment to the Column of a Table

Snowflake Key Concepts