Hi,
I have a query where I am making an arithmetic operation:
SELECT * FROM MyTable WHERE HrsAct / HrsPlan > 1 AND USER = "John"
It works sometimes, the problem happen when HrsPlan = cero.
I tried to do:
SELECT * FROM MyTable WHERE HrsPlan > 0 AND HrsAct / HrsPlan > 1 AND USER = "John"
But I still get the error Overflow because I am dividing in cero.
How can I perform this query without having Overflow error?
Thanks,
I have a query where I am making an arithmetic operation:
SELECT * FROM MyTable WHERE HrsAct / HrsPlan > 1 AND USER = "John"
It works sometimes, the problem happen when HrsPlan = cero.
I tried to do:
SELECT * FROM MyTable WHERE HrsPlan > 0 AND HrsAct / HrsPlan > 1 AND USER = "John"
But I still get the error Overflow because I am dividing in cero.
How can I perform this query without having Overflow error?
Thanks,