Тёмный

How to use Variables in Snowflake 

Kahan Data Solutions
Подписаться 43 тыс.
Просмотров 11 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@KahanDataSolutions
@KahanDataSolutions 3 года назад
Get my Modern Data Essentials training (for free) & start building more reliable data architectures www.ModernDataCommunity.com
@hashamalis
@hashamalis Месяц назад
Variables cannot be directly accessed in select clause. It would be great, usage of identifier also mentioned in this tutorial.
@Dabunni6398
@Dabunni6398 Год назад
Love the lofi? music in the background :)
@martinpalkovic7222
@martinpalkovic7222 Год назад
Nice video! Thanks 😃
@JimRohn-u8c
@JimRohn-u8c Год назад
Please make a video on Snowflake stored procedures please!
@ukaszstangel9115
@ukaszstangel9115 3 года назад
Nice one. Thank you!
@KahanDataSolutions
@KahanDataSolutions 3 года назад
Glad you liked it!
@vru5696
@vru5696 4 месяца назад
@@KahanDataSolutions Any example of multiple values for only one variable and then how can we use it in sql statement IN clause?
@gordonash6031
@gordonash6031 2 года назад
Hi, this video is great, could you tell me how to set a variable from a select statement like in MS SQL like declare @i int select @i=max(id) from [dbo].[tbl] select @i Thanks
@hashamalis
@hashamalis Месяц назад
You need to use the IDENTIFIER function to dynamically construct the table name. Ex: SET DBNAME = 'DB1'; SET SCHEMA= 'SCH1'; SELECT * FROM IDENTIFIER($DBNAME || '.' || $SCHEMA|| '.TEMP');
@hectors8344
@hectors8344 Год назад
Have you ever run into problems declaring variables. When I run a simple declare sSQL varchar(500) , I get syntax error at position..unexpected . I am trying to dynamically create a sql statement but I run in to string size limitation when I use your described technique. All attempts to declare the variable and assign datatypes are failing.
@robertb8280
@robertb8280 2 года назад
Thank you for the video. I am trying to set column names as I use to in oracle, using variables, but I cannot get it to work. For example, SET NAME1 = IMPORTANT_NAME Select Some_Name as $NAME1 from table1. Snowflake does not like this or using identifier($NAME1) etc. Any thoughts on this. I have a ton of column names that change every month that I wanted to preset as variables so that I don't have to keep changing the code. Thanks
Далее
Data Generation w/ Snowflake
9:08
Просмотров 2,2 тыс.
How many can you smash?🍫 IB : Florin
00:19
Просмотров 3,2 млн
How to Use Snowflake Tasks
40:21
Просмотров 7 тыс.
How to Use Jinja w/ dbt Macros (3 Examples)
11:34
Просмотров 2,8 тыс.
Data visualization in Snowflake // Snowsight
8:17
Просмотров 30 тыс.
5 Tips for Snowflake (built-in features)
10:46
Просмотров 6 тыс.