I have a table that may have about 100 records or so, with a user name field. There may be many records with the same username. How would I ensure that only one record for each username is returned, regardless of which record it is?
e.g. for the following table
users
username item firstname lastname
-------------------------------------------------
superhans shoes super hans
jez hat jeremy sisto
jez book jeremy sisto
flinto train fred flintstone
superhans shirt super hans
Only the following would be returned:
username item firstname lastname
-------------------------------------------------
superhans shoes super hans
jez hat jeremy sisto
flinto train fred flintstone