Snowflake Vs MS-SQL - Part 44 - Select a Column using column order

          


Select a Column using column order

If you want to select any column from a table then you have to specify the column name in the SELECT clause. 

You need to select the third column from this table.

MS-SQL Server 

You need to perform multiple steps using SP_RENAME. You can mention the column name in the SELECT clause as below:



In Snowflake, we can use a similar approach as above. However, Snowflake has a different approach i.e you can mention column order instead of column name as below: 




For more details, you can refer to the following ColumnOrder.




Yogesh Shinde

LinkedInProfile

<<< Back Next >>>

Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Part 36 - SPLIT_TO_TABLE

Snowflake Vs MS-SQL - Part 63 - ON Clause & Cross Join

Snowflake Vs MS-SQL - Part 33 - INITCAP