As far as I remember the COLAESCE function causes problems in the joining condition in MERGE statement. Did you try without using the COALESCE statement?
↧
Is there a limitation on the Merge statement and Rank Function? - response (1) by Qaisar Aftab Kiani
↧