• Luis Cazares (6/12/2013)


    As easy as

    SELECT UserID,

    MAX(Email) Email

    FROM MyTable

    If you need a specific email, you need to define the priority.

    Yep, easy except you are missing something:

    SELECT

    UserID,

    MAX(Email) Email

    FROM

    MyTable

    GROUP BY

    UserID;