#1101

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.

Ukázka očekávaného výstupu

Takto vypadá správná odpověď — počet řádků je její vlastní, nemusí odpovídat tabulkám schématu.

actionsrc_id
UPDATE101
UPDATE102
INSERT103

Výsledek vašeho dotazu se zobrazí zde