I have a query which parses a string values from a column:
SELECT left(DateTimeSent, 17) AS timesent FROM allog_07_11_e query1
When I do:
SELECT left(DateTimeSent, 17) AS timesent FROM allog_07_11_e query1.timesent != '0'
I get:
Msg 207, Level 16, State 1, Line 1
Invalid column name 'timesent'.
Any ideas why?
WHEREclause an alias defined in theSELECTlist, it's due to the: order of execution of aSELECTstatement – ypercube May 16 '12 at 13:27