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