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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Help with Syntax

Author  Topic 

viperbyte
Posting Yak Master

132 Posts

Posted - 2013-05-07 : 11:11:09
How do you guys get an extended price in a select statement in which the new column is a result of multiplying two fields such as unitcost * numordered?

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2013-05-07 : 11:16:16
SELECT column1,column2,...,columnN, unitcost * numordered as ExtendedPrice FROM TableName

Cheers
MIK
Go to Top of Page

viperbyte
Posting Yak Master

132 Posts

Posted - 2013-05-07 : 12:41:30
Thanks MIK.
Go to Top of Page
   

- Advertisement -