catchup
11-19-2003, 09:19 PM
I have a table called "ranges" with columns "startR" & "endR" and another table called "captured" with column "ipA"
ipA are different ip address turned into a number and startR and endR are the ranges an ISP haas, also turned into a number.
How can I select the records where ipa (from table captured) is between any of the ranges between startR and endR in the ranges table? can this be done in 1 sql? This is my ill-syntaxed effort:
"SELECT * FROM ranges WHERE (ipA FROM captured between startR AND endR)"
Thanks!
ipA are different ip address turned into a number and startR and endR are the ranges an ISP haas, also turned into a number.
How can I select the records where ipa (from table captured) is between any of the ranges between startR and endR in the ranges table? can this be done in 1 sql? This is my ill-syntaxed effort:
"SELECT * FROM ranges WHERE (ipA FROM captured between startR AND endR)"
Thanks!