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 2005 Forums
 Transact-SQL (2005)
 Select query how to use arithmetic operator minus

Author  Topic 

cplusplus
Aged Yak Warrior

567 Posts

Posted - 2008-12-06 : 22:57:16
I want to write a select statement using arithmetic operator minus., getting the leftoveramount.

select sum(invoice_amt) - sum(order_Amt) as leftoveramount from table_orders

Thank you very much.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-07 : 00:57:27
this looks fine. are you getting any error?
Go to Top of Page
   

- Advertisement -