` Totalling a computed field in SQL (J Shankar ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Totalling a computed field in SQL
2007-12-10 -- J Shankar
 
select ID, sum(QTY), Sum(Extension), Sum(DiscountExt), Sum(Case When discountext = 0 then extension else discountext end) AS 'SoldPrice' from partsolds group by ID


Today is November 21, 2024, 3:39 am
This article has been viewed 35233 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: