April 20, 2004 at 3:04 pm
This query works fine in Access
select col1 + col1 as expr1, expr1 * 2 as twice_expr1
from a_table
but not in sqlserver. What is the equivalent query of this in sql server? Ill appreciate any help!
AUXilliary COMmunication 1
April 21, 2004 at 11:58 pm
select col1 + col1 as expr1, (col1 + col1 )* 2 as twice_expr1
from a_table
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
April 22, 2004 at 1:56 pm
Thanks! But why its not allowed in sqlserver to use directly expression fields?
AUXilliary COMmunication 1
April 23, 2004 at 12:45 am
- SQL92-standard adaption.
- access-engine is not sqlserver-engine
- maybe it's on the wishlist for sql2k5
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
April 23, 2004 at 7:53 am
oh i see! i wish it will be on the next version of sqlserver
many thanks to u!!!!
AUXilliary COMmunication 1
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply