What I have is basically a problem which is easily solved with multiple tables, but I have only a single table to do it.
Consider the following database table
select distinct * from table t1 where EmailAddress = (select max(EmailAddress) from table t2 where t1.userId = t2.userId)