I have 2 tables.
Table 1 has 2 columns: From and to having some interger values
Table 2 has a column having interger values, which may or may not lie between range specified from "To" value to "From" value.
I have to make a query, to count the number of entries in table 2 which lie in the range decided by "To" - "From"
Please help.
2006-08-08
19:46:27
·
5 answers
·
asked by
Sanjeev G
1
in
Computers & Internet
➔ Programming & Design
What is wrong with this SQL query:
Update table1,table2 set table1.col1 = count(*) where ((table1.col2 > table2.col1) and (table1.col3 < table2. col1))
2006-08-08
19:59:00 ·
update #1