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
 Transact-SQL (2000)
 Select problem

Author  Topic 

bluekite_11
Starting Member

4 Posts

Posted - 2003-10-07 : 08:26:27
I have ths one table which has columns like price and quantity.Now the thing i am unable to create a query using select sattement which gives me rows where the product of sum*price is greater that 1 lac.
To make it simple i wanna rows where the value(price*quantity)>100000.

Thnx
Mohan

SamC
White Water Yakist

3467 Posts

Posted - 2003-10-07 : 08:51:12
SELECT sum, price, sum*price as Product

From MyTable

WHERE sum*price > 1


Go to Top of Page

bluekite_11
Starting Member

4 Posts

Posted - 2003-10-07 : 09:11:56
Thnx Sam
Go to Top of Page
   

- Advertisement -