Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Accumulate field in SQL
Message
From
21/02/2000 06:36:31
Srinivasan Ashwath
Zeus Software Services
Hyderabad, India
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00333469
Message ID:
00334766
Views:
11
Say i have itemcode,qty, unit price as column in table, and in select statement
it should possess itemcode,qty,unitprice and total an extra column
Table name potrdhd - (purchase order transaction details header table)
then
Select itemcode,qty, unitprice,(unitprice*qty) as tot from potrdhd

This will return an extra column as tot which contains unitprice* qty for each record

Regards,
ashwath
Previous
Reply
Map
View

Click here to load this message in the networking platform