I have a table that stores user id and name on every record.Usually the name can change with time, so I have a query that groups by id and name, but instead of 1 records I get 2 or more.i.e: UserId-----UserName ABC--------ABC User ABC--------ABC Users
How can I get only one record by userid, no matter which one?
I get the user name from another database, which can be deleted, so I need to keep this info to be available in my app for historical reasons