Gossamer Forum
Home : Products : Others : MySQLMan :

Duplicate emails when doing a query

Quote Reply
Duplicate emails when doing a query
Hello,

After I do this statement:

SELECT email FROM contact AS C, membership AS M WHERE M.type = "SUP"

I get back 2 listings of the same email address.

What am I doing wrong? Email addresses are only listed in the table "contact". Why am I getting duplicates back?

Quote Reply
Re: Duplicate emails when doing a query In reply to
Use DISTINCT

Regards,

Eliot Lee
Quote Reply
Re: Duplicate emails when doing a query In reply to
Thank you!! :)