hi all
i have this code
where i'm trying to check if my msn contacts
are also contacts on my web site
i keep email addresses and msn addresses in the database
but obviously not everyone uses the same address as what they register with
so after they log into msn, i get all their msn addresses and then compare them to what is in our database
but this query seems to take a while
and since i have not had great experience with "WHERE (NOT) IN"
i wanted to know if there is anything else i can use that may be faster
the addresses in the "WHERE IN" part of taken from the msn login details
and so i don't know how else i can check them
and user_ID's are taken from another separate query from another table that stores contacts details
i guess i could probably try to integrate that into a subquery, but not sure if there are any performance gains to be had there
thanksCode:SELECT user_Nick, user_ID, user_Email, user_MSN FROM urban_userlog WHERE (user_Email IN ( 'sample@domain.com', 'test@hotmail.com') OR user_MSN IN ( 'sample@domain.com', 'test@hotmail.com') ) AND user_ID NOT IN ( '1', '2') AND user_AccountStatus = 'a' GROUP BY user_Nick
dave








Bookmarks