Skip to content

Commit eb5cc60

Browse files
Update cost-per-query-in-snowflake-using-credits_attributed_compute-metric-in-query_attribution_history-view.md
1 parent 0697a67 commit eb5cc60

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cost-per-query-in-snowflake-using-credits_attributed_compute-metric-in-query_attribution_history-view.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ select
1010
from SNOWFLAKE.ACCOUNT_USAGE.QUERY_ATTRIBUTION_HISTORY
1111
```
1212

13-
This View can be joined with `QUERY_HISTORY` View using `query_parameterized_hash` as JOIN Key to get an average of the Snowflake Credits consumed for a given query.
13+
This View can be joined with `QUERY_HISTORY` View using [query_parameterized_hash](query_hash-and-query_parameterized_hash-in-snowflake.md) as JOIN Key to get an average of the Snowflake Credits consumed for a given query.
1414

1515
```sql
1616
select
@@ -22,5 +22,7 @@ from SNOWFLAKE.ACCOUNT_USAGE.QUERY_ATTRIBUTION_HISTORY
2222
inner join SNOWFLAKE.ACCOUNT_USAGE.query_history using (query_parameterized_hash)
2323
group by all;
2424
```
25-
![carbon(8)](https://github.com/user-attachments/assets/3ca2007e-5650-4e1d-a0fb-8d2749ce1a6e)
25+
|![carbon(8)](https://github.com/user-attachments/assets/3ca2007e-5650-4e1d-a0fb-8d2749ce1a6e)|
26+
|:-:|
27+
|Using `query_parameterized_hash` to JOIN `QUERY_ATTRIBUTION_HISTORY` and `QUERY_HISTORY` |
2628

0 commit comments

Comments
 (0)