Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple SELECT query

Status
Not open for further replies.

ilium007

Programmer
Oct 28, 2003
1
AU
Hi - I am having probelms writing a query to select multiple items that are exactly the same in a table. I have about 4000 email addresses in a table that people have left and I intend to send an email to with MOJO. I would like to run a query however to find the ones people have left twice, and just select all dissimilar items.
Thanks in advance
 
what i undesrtand from ur question is that u wish to find people who have left twice or more times.

then try the following

Select e-mail FROM table
group by e-mail
having count(e-mail) >= 2

swampBoogie cmd would give u all e-mails onece that is no duplicacy



[ponder]
----------------
ur feedback is a very welcome desire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top