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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi I had a system that works fin

Status
Not open for further replies.

conceptmgt

IS-IT--Management
Sep 12, 2001
45
GB
Hi

I had a system that works fine in MS SQL 7 and I am converting it to MYSQL. I had a script that removes duplicates below:

strsql = "DELETE FROM EmailAddresses WHERE"
strsql = strsql + " EXISTS ("
strsql = strsql + " SELECT"
strsql = strsql + " NULL"
strsql = strsql + " FROM"
strsql = strsql + " EmailAddresses b"
strsql = strsql + " WHERE"
strsql = strsql + " b.[EmailAddress] = EmailAddresses.[EmailAddress]"
strsql = strsql + " GROUP BY"
strsql = strsql + " b.[EmailAddress]"
strsql = strsql + " HAVING"
strsql = strsql + &quot; EmailAddresses.[EmailAddressid] < MAX(b.[EmailAddressid])&quot;
strsql = strsql + &quot; )&quot;

It won't work on the MYSQL database any ideas?

Thanks

Gary
 
try asking the guys in forum436 - they may be able to help you out too.
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top