UPDATE partner_cimtar SET alapertelmezett = dm_iif(((SELECT kod FROM partner_cimtar x WHERE x.partner_kod = partner_cimtar.partner_kod AND x.cim_tipus = partner_cimtar.cim_tipus ORDER BY kod LIMIT 1) = partner_cimtar.kod),'1','0');