Forum Moderators: open
Hope someone can help me with this!
I have a fairly large database containing the following fields..
email , firstname , surname, address1, address2,
However it contains many duplicate entires and would like to be able to select distinct entries based on email address.
While
select distinct email from tbl_users
Gives me the distinct email address,
select distinct email ,firstname, Surname, from tbl_users
gives me a number of duplicates if someone has entered thier name diffently i.e diplays:
joe@email.com fistname surname
joe@email.com 1stname surname
Hope there is an easy solution that I've missed!
This topic was covered recently in the php forum. Check out my post (#4) in this thread [webmasterworld.com]
arran.