sql server 2008 - how to threshold with a new defined column in SQL -
so defining new column converting table's start_time , want filter respect change.
select job_name, convert(varchar(10), start_time, 101) startdate , other_stuff table startdate = '2013-05-08' order start_time asc but error saying startdate not valid column. how can filter this? appreciated.
you can't use alias column in clause...
a workaround problem using derived table have select statement rows....
select * ( select job_name, convert(varchar(10), start_time, 101) startdate , other_stuff table ) new_table startdate = '2013-05-08' order start_time asc
Comments
Post a Comment