|
-
Oct 17th, 2006, 03:03 AM
#1
Thread Starter
Junior Member
Getting sum of the product of two columns of dataset using Compute method of datatabl
I need to get the sum of Product of two columns of datatable in dataset.
There were no relations in the datatable.
i used the code
dataset.Tables("ABC").Compute("Sum(Price1 * Price2)","")
Where price1 and Price2 are column names in the data table.
i am getting an exception with message
"Syntax error in aggregate argument: Expecting a single column argument with possible 'Child' qualifier".
Anybody know the solution, plz reply. its urgent.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|