Insert-or-Update Preview
Before applying the load, show the action for the freshest version of each src_id from stg_users: freshness is determined by the greatest loaded_at, with larger id breaking ties. If the key is not in dim_users, action is INSERT; if it is already there, action is UPDATE. Return src_id and action, sorted by src_id.
Vzorec pričakovanega izhoda
Tako izgleda pravilen odgovor — ima svoje število vrstic in se ni treba ujemati s tabelami sheme.
| action | src_id |
|---|---|
| UPDATE | 101 |
| UPDATE | 102 |
| INSERT | 103 |
Prijavite se za ogled zgodovine oddaj
PrijavaPrijavite se za uporabo mentorja UI
Prijava