Explain it in 60 seconds
Querying past data with AT and BEFORE
Data Engineering · Snowflake · Beginner
How do you query or restore a table as it was at an earlier point in Snowflake?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Use AT or BEFORE with TIMESTAMP, OFFSET or STATEMENT (a query ID).
- BEFORE(STATEMENT => query_id) shows data just before a bad statement ran.
- CREATE TABLE ... CLONE ... AT(...) restores a past version as a new table.
- UNDROP brings back dropped tables, schemas or databases within retention.
- Retention is set with DATA_RETENTION_TIME_IN_DAYS.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.