hello
I have a question about the 'ON' statement in my query. I'll only show the necessary part of the SQL:
In both tables, the values a, b, c...j have been declared as INTEGERS. Each of them has a value from 0 to 6.
Here's my question. Is it possible that the 'ON' statement could give erroneous results, given that either side of the inequality could be so large (even greater than the max value of LONG). As far as I know, the query seems to work perfectly, but I worry that the size of the terms in the ON statement could be giving some wrong or incomplete results.
thank you
Vicky C.
I have a question about the 'ON' statement in my query. I'll only show the necessary part of the SQL:
Code:
SELECT T1.*
FROM tbl1 as T1
INNER JOIN tbl2 As T2
ON (T1.a*10000000000 + T1.b*1000000000 + T1.c*100000000 + ..... + T1.i*10 + T1.j) >=
(T2.a*10000000000 + T2.b*1000000000 + T2.c*100000000 + ..... + T2.i*10 + T2.j)
......
In both tables, the values a, b, c...j have been declared as INTEGERS. Each of them has a value from 0 to 6.
Here's my question. Is it possible that the 'ON' statement could give erroneous results, given that either side of the inequality could be so large (even greater than the max value of LONG). As far as I know, the query seems to work perfectly, but I worry that the size of the terms in the ON statement could be giving some wrong or incomplete results.
thank you
Vicky C.