CODE WORKSPACE

Current-row snapshot audit

Compare current snapshot rows against incoming source state and classify drift.

The SQL API will hydrate this workspace with the exercise-specific starter query and schema.

Sample input

current target vs clean sourceThe audit covers keys in either side: target-only 107, source-only 102/106, changed 101/104, delete 103, aligned 105.
customer_idsource_tiertarget_tiersource_deleted
101goldsilver0
102silvernull0
103bronzebronze1
104platinumgold0
105bronzebronze0
106silvernull0
107nullsilvernull

Expected output

Expected outputClassify source/target drift for every key in the union.
customer_idaudit_status
101attribute_drift
102missing_current
103source_delete
104attribute_drift
105aligned
106missing_current
107missing_source

Constraints

Load the live SQL exercise to inspect the full prompt, schema, starter query, and expected output.

Expected skills

Snapshots, Auditing, Current rows

SQL
Loading...

AI evaluation

Run the SQL query to inspect preview rows.