Home [Snowflake] Queries
Post
Cancel

[Snowflake] Queries

cancel query

  • by query id : select system$cancel_query('d5493e36-5e38-48c9-a47c-c476f2111ce5');

  • by session id : select system$cancel_all_queries(1065153872298);

Get First Row of each group

1
2
3
4
SELECT NAME,DEPT,SALARY
FROM (SELECT *, ROW_NUMBER () OVER(PARTITION BY DEPT ORDER BY SALARY DESC) AS rn
FROM employee
) WHERE rn = 1;

Add column to table

1
ALTER TABLE prod.server.matching_user_wait_duration_seconds_sum ADD COLUMN play_type STRING;
This post is licensed under CC BY 4.0 by the author.

Kafka 동작원리

실시간 Prometheus To Snowflake 파이프라인 구축

Comments powered by Disqus.

Trending Tags