Roubicek Posted March 31, 2006 Share Posted March 31, 2006 I have 2 tables: "ROBOTS" and "REFERRALS"Each table has a column called "IP"I want to run a query that removes all of the "IP" addresses in REFERRALS that are in the "IP" list in ROBOTS.What I have tried so far is: SELECT REFERRALS.IPFROM REFERRALSWHERE REFERRALS.IP<>ROBOTS.IP; I am very new to SQL so I'm hoping this is an easy thing to do? Link to comment Share on other sites More sharing options...
Siddhesh Posted March 31, 2006 Share Posted March 31, 2006 I have 2 tables: "ROBOTS" and "REFERRALS"Each table has a column called "IP"I want to run a query that removes all of the "IP" addresses in REFERRALS that are in the "IP" list in ROBOTS.What I have tried so far is:SELECT REFERRALS.IPFROM REFERRALSWHERE REFERRALS.IP<>ROBOTS.IP; I am very new to SQL so I'm hoping this is an easy thing to do? <{POST_SNAPBACK}> This may help uSelect IP from ReferralWhere IP Not In(Select IP from Robots) Link to comment Share on other sites More sharing options...
Roubicek Posted March 31, 2006 Author Share Posted March 31, 2006 Thank you Sidesh, that worked brillantly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now