Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Making calculation in select statement

Author  Topic 

lsy
Yak Posting Veteran

57 Posts

Posted - 2005-09-20 : 04:24:24
Is it possible i make calculation in the sql select statement??

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2005-09-20 : 04:47:58
yes....
select col1 + col2 as col1pluscol2 from yourtable
is an example....read up on "expressions" in BOL
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-09-20 : 04:53:30
and make sure they are of same data types

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

lsy
Yak Posting Veteran

57 Posts

Posted - 2005-09-20 : 21:26:39
ok thanks...
Go to Top of Page
   

- Advertisement -