Complete the code to query data as it existed 1 hour ago using Time Travel.
SELECT * FROM sales_data AT (OFFSET => [1]);Time Travel in Snowflake allows querying data as it was in the past. The OFFSET value is in seconds, so 3600 seconds equals 1 hour ago.
Complete the code to restore a dropped table using Time Travel.
UNDROP TABLE [1];The UNDROP command restores a dropped table. Here, 'sales_data' is the table to recover.
Fix the error in the query to select data from 2 hours ago using Time Travel.
SELECT * FROM orders AT (OFFSET => [1]);The OFFSET value must be positive and represents seconds in the past. 2 hours = 7200 seconds.
Fill both blanks to query the 'customers' table as it was 30 minutes ago using Time Travel.
SELECT * FROM customers AT ([1] => [2]);
To query data 30 minutes ago, use OFFSET with 1800 seconds (30 × 60).
Fill all three blanks to restore the 'inventory' table dropped recently and query its state 15 minutes ago.
UNDROP TABLE [1]; SELECT * FROM [2] AT ([3] => 900);
First, undrop the 'inventory' table, then query it 15 minutes ago using OFFSET with 900 seconds (15 × 60).