ExamGecko
Question list
Search
Search

List of questions

Search

Question 7 - DEA-C01 discussion

Report
Export

Streams record the differences between two offsets. If a row is added and then updated in the current offset, what will be the value of METADATA^^SUPDATE Columns in this scenario?

A.
TRUE
Answers
A.
TRUE
B.
FALSE
Answers
B.
FALSE
C.
UPDATE
Answers
C.
UPDATE
D.
INSERT
Answers
D.
INSERT
Suggested answer: B

Explanation:

Stream Columns

A stream stores an offset for the source object and not any actual table columns or data. When queried, a stream accesses and returns the historic data in the same shape as the source object (i.e. the same column names and ordering) with the following additional columns:

METADATA$ACTION Indicates the DML operation (INSERT, DELETE) recorded.

METADATA^^SUPDATE Indicates whether the operation was part of an UPDATE statement. Updates to rows in the source object are represented as a pair of DELETE and INSERT records in the stream with a metadata column METADATA^^SUPDATE values set to TRUE.

METADATA$ROW_ID Specifies the unique and immutable ID for the row, which can be used to track changes to specific rows over time.

Note that streams record the differences between two offsets. If a row is added and then updated in the current offset, the delta change is a new row. The METADATA^^SUPDATE row records a FALSE value.

asked 23/09/2024
Verónica Crespo
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first