I thought I would impress my Father in Law by telling him I am a whiz at SQL. I'm alright but no whiz.
These are IP's he wants to see if any of his clients are signing up from. He is diving into the world of CRM and I think he likes me more because I told him I could help. I figured or would work like I have it in context but it is saying ip between is true and start date = that is true, etc...
select c.accountnumber, c.zipcode, c.sourceip
from transactions t, contacts c
where
c.sourceip between '4.2.145.0' and '4.2.145.63' or
c.sourceip between '4.2.170.64' and '4.2.170.127' or
c.sourceip between '4.17.135.32'and '4.17.135.63' and
Startdate = '02-18-2005' and
businessunitid = 3
group by c.accountnumber,c.zipcode,c.sourceip
These are IP's he wants to see if any of his clients are signing up from. He is diving into the world of CRM and I think he likes me more because I told him I could help. I figured or would work like I have it in context but it is saying ip between is true and start date = that is true, etc...
select c.accountnumber, c.zipcode, c.sourceip
from transactions t, contacts c
where
c.sourceip between '4.2.145.0' and '4.2.145.63' or
c.sourceip between '4.2.170.64' and '4.2.170.127' or
c.sourceip between '4.17.135.32'and '4.17.135.63' and
Startdate = '02-18-2005' and
businessunitid = 3
group by c.accountnumber,c.zipcode,c.sourceip