Snowflake Vs MS-SQL - Part 114 - Period Data Type
Period Data Type
In warehouse, most of the time you are saving a record with start_date and end_date. If you want to filter a record based on these dates then you have to use both date columns.
MS-SQL Server
In Snowflake, we can use a similar approach as above; however, we can use PERIOD DATA TYPE as follows:
For more details, refer to the Period-DataType or Period-Function sections. You can see multiple use cases of Period Data Type.
Yogesh Shinde

Comments
Post a Comment