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 2000 Forums
 SQL Server Development (2000)
 Caluculated fields

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-10-10 : 09:09:15
Gamil Rasmy writes "I have table and I want to calcutate (qnty*price) for each row. then the result to be multipled by 10%,then the result evaluated be case statmen to retrive another value.

here is what I need in select statment

subtotal = qnty*price

Total = subtotal*1.1

case total
when > 100
Gtotal = total
when <100
Gtotal
end as gtotal"
   

- Advertisement -