Hmmmm, SQLBill, so what you are think about this condition:
Code:
WHERE (
CONVERT(int, ms)/1000
)/3600
after litle 'makeup':
WHERE CONVERT(int, ms) / 3600000
or more simple
WHERE ms / 3600000
This really not seems to be good, still missing something at the end
The errors that compiler gives you are not always that you have to look for.
If compiler get's you error you are missing some bracket, it may not be the problem that you forgot somewhere one, but may be you have forgot some expression.
Simplest version of problem statement:
Code:
if ( SELECT ... WHERE ms / 3600000 ) > 3
^
|
and look there -------------------|
And for this statement, it gives me error:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near ')'.
It means not missing a bracket, but something around it
Zhavic
---------------------------------------------------------------
In the 1960s you needed the power of two Comodore64s to get a rocket to the moon. Now you need a machine which is a vast number of times more powerful just to run the most popular GUI.