ADA-C01 · Question #81
MY_TABLE is a table that has not been updated or modified for several days. On 01 January 2021 at 07:01, a user executed a query to update this table. The query ID is '8e5d0ca9-005e…
The correct answer is B. SELECT * FROM my_table AT (TIMESTAMP => '2021-01-01 07:00:00' :: timestamp); D. SELECT * FROM my table PRIOR TO STATEMENT '8e5d0ca9-005e-44e6-b858-a8f5b37c5726'; F. SELECT * FROM my_table BEFORE (STATEMENT => '8e5d0ca9-005e-44e6-b858-. According to the AT | BEFORE documentation, the AT or BEFORE clause is used for Snowflake Time Travel, which allows you to query historical data from a table based on a specific point in the past. The clause can use one of the following parameters to pinpoint the exact…
Question
MY_TABLE is a table that has not been updated or modified for several days. On 01 January 2021 at 07:01, a user executed a query to update this table. The query ID is '8e5d0ca9-005e- 44e6-b858-a8f5b37c5726'. It is now 07:30 on the same day. Which queries will allow the user to view the historical data that was in the table before this query was executed? (Choose three.)
Options
- ASELECT * FROM my table WITH TIME_TRAVEL (OFFSET => -60*30);
- BSELECT * FROM my_table AT (TIMESTAMP => '2021-01-01 07:00:00' :: timestamp);
- CSELECT * FROM TIME_TRAVEL ('MY_TABLE', 2021-01-01 07:00:00);
- DSELECT * FROM my table PRIOR TO STATEMENT '8e5d0ca9-005e-44e6-b858-a8f5b37c5726';
- ESELECT * FROM my_table AT (OFFSET => -60*30);
- FSELECT * FROM my_table BEFORE (STATEMENT => '8e5d0ca9-005e-44e6-b858-
How the community answered
(17 responses)- A6% (1)
- B71% (12)
- C6% (1)
- E18% (3)
Explanation
According to the AT | BEFORE documentation, the AT or BEFORE clause is used for Snowflake Time Travel, which allows you to query historical data from a table based on a specific point in the past. The clause can use one of the following parameters to pinpoint the exact historical data you wish to access: - TIMESTAMP: Specifies an exact date and time to use for Time Travel. - OFFSET: Specifies the difference in seconds from the current time to use for Time Travel. - STATEMENT: Specifies the query ID of a statement to use as the reference point for Time Travel.of 07:01.
Topics
Community Discussion
No community discussion yet for this question.