J
|
Jane 4/18/2008 |
Hi, |
E
|
erago author 4/18/2008 |
Need Proper Syntax, All IF Statements have been creating Errors. Have tried IF, IFELSE, ELSEIF, IF() All create errors. |
E
|
erago author 4/20/2008 |
I found The Solution In the IF() ( IF NULL ) Statement |
E
|
erago author 5/4/2008 |
I found The Solution In the IF() ( IF NULL ) Statement Proper Query is as Follows, SELECT `TableName ID`, begin, end, IF(end IS NULL,CURDATE()-begin,end-begin) AS Duration FROM `TableName` This Achieved the goal to search for a Calculated Value that is not a recorded value in a field, a Value that could be changing every day.
|