PC Review


Reply
Thread Tools Rate Thread

More than one aggregate function in datatable.compute.

 
 
Archana
Guest
Posts: n/a
 
      13th May 2008
Hi all,

i am applying aggregate function on datatable.compute. I have one
fiter criteria and based on that i want to apply sum function on two
columns like sum(sal), sum(pf). if i write query in sql it is
allowing me to use more than one aggregate function but how to do it
in datatablse.select. or is there any other alternative of doing
this. i want this in disconnected datatable only.

please help me asap.

thanks in advance.
 
Reply With Quote
 
 
 
 
Miha Markic
Guest
Posts: n/a
 
      15th May 2008
You might consider using LINQ to Dataset if possible.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

"Archana" <(E-Mail Removed)> wrote in message
news:27b37738-7a48-4ea2-a5ca-(E-Mail Removed)...
> Hi all,
>
> i am applying aggregate function on datatable.compute. I have one
> fiter criteria and based on that i want to apply sum function on two
> columns like sum(sal), sum(pf). if i write query in sql it is
> allowing me to use more than one aggregate function but how to do it
> in datatablse.select. or is there any other alternative of doing
> this. i want this in disconnected datatable only.
>
> please help me asap.
>
> thanks in advance.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datatable.compute Chuck Hecht Microsoft Dot NET Compact Framework 1 28th Aug 2007 04:45 AM
DataTable.Compute() question SpaceMarine Microsoft Dot NET Framework 5 22nd Aug 2007 09:41 AM
DataTable Compute Method =?Utf-8?B?QW5kcmVpd2lk?= Microsoft ADO .NET 1 8th Nov 2005 08:01 PM
datatable.compute method =?Utf-8?B?RGF2aWQgQW5kZXJzb24=?= Microsoft Dot NET 1 8th Jun 2005 12:16 PM
aggregate from datatable MattB Microsoft ASP .NET 1 19th Mar 2004 07:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:39 PM.