Can you give me the SQL commands to identify unused tables and stale views in Snowflake so we can drop them and cut storage costs today
Download run
Fan-out diagram
The searches the AI actually ran for this prompt.
SEED QUERY
Can you give me the SQL commands to identify unused tables and stale views in Snowflake so we can drop them and cut storage costs today
3 real searches · 1 real-search pass
Snowflake ACCOUNT_USAGE ACCESS_HISTORY direct_objects_accessed base_objects_accessed objectName documentationGoogle ↗
OBSERVEDInstruction
Snowflake ACCOUNT_USAGE TABLE_STORAGE_METRICS ACTIVE_BYTES TIME_TRAVEL_BYTES FAILSAFE_BYTES documentationGoogle ↗
OBSERVEDReason
Snowflake OBJECT_DEPENDENCIES ACCOUNT_USAGE documentationGoogle ↗
OBSERVEDReason
Badge and edge weight = share of passes that produced the query. Hover a query for its intent and routing format.
Query classes
Google's semantic query class for every sub-query: what kind of answer each search is after, simulated vs real.
ChatGPT real searches (3)
Classes come from the query-classifier (a local Laya model). 3 of 3 calls are low-confidence (under 50%) — hover a query in the table to see its confidence.
Searches and sources
ChatGPT3 real searches · gpt-6
Snowflake ACCOUNT_USAGE ACCESS_HISTORY direct_objects_accessed base_objects_accessed objectName documentation Google ↗
Snowflake ACCOUNT_USAGE TABLE_STORAGE_METRICS ACTIVE_BYTES TIME_TRAVEL_BYTES FAILSAFE_BYTES documentation Google ↗
Snowflake OBJECT_DEPENDENCIES ACCOUNT_USAGE documentation Google ↗
- TABLE_STORAGE_METRICS view · docs.snowflake.com
- TABLE_STORAGE_METRICS view · docs.snowflake.com
- ACCESS_HISTORY view · docs.snowflake.com
- Access History · docs.snowflake.com
Queries
3 queries · click a column to sort
| Query / type | Search | Intent | Query class | Routing format | Cluster | Freq ↓ | Weight |
|---|---|---|---|---|---|---|---|
Snowflake ACCOUNT_USAGE ACCESS_HISTORY direct_objects_accessed base_objects_accessed objectName documentation OBSERVED | Google ↗ AI Mode ↗ | — | Instruction | — | — | 1x of 1 | |
Snowflake ACCOUNT_USAGE TABLE_STORAGE_METRICS ACTIVE_BYTES TIME_TRAVEL_BYTES FAILSAFE_BYTES documentation OBSERVED | Google ↗ AI Mode ↗ | — | Reason | — | — | 1x of 1 | |
Snowflake OBJECT_DEPENDENCIES ACCOUNT_USAGE documentation OBSERVED | Google ↗ AI Mode ↗ | — | Reason | — | — | 1x of 1 |