Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 query optimization

Author  Topic 

MISO
Starting Member

3 Posts

Posted - 2003-11-06 : 08:01:42
I'm sorry that I posted a mistake in my query. Here is the query. Can Any one say how to optimize it.
-------------------------------------------
delete from table1 where ((NEWS_LETTER_ID in
("FLOWERS","BOUQUETS") or NEWS_LETTER_ID like
'newsletter%')) and (REGISTERED_ID=(select ID from IDTABLE where EMAIL_ADDRESS='key1'))

Any suggestion is greatly appreciated

   

- Advertisement -