SELECT Email, Function FROM database qualify row_number() over(partition by Email order by Function) ==1