T
Tony
I have a typed dataset with several columns but there are only two that are
of interest here. They are myDate and myLoopnrdag
I want to find the maximum value of myLoopnrdag for each group of mydate.
In this example I want to find 11 for myDate 2013-05-03 and
9 for myDate 2013-05-05 and
12 for myDate 2013-05-08 and
8 for myDate 2013-05-10
How do I write a Linq to dataset query that do that ?
Here is an example
myDate myLoopnrdag
2013-05-03 5
2013-05-03 11
2013-05-03 4
2013-05-05 2
2013-05-05 9
2013-05-05 3
2013-05-08 12
2013-05-08 10
2013-05-08 7
2013-05-10 6
2013-05-10 8
2013-05-10 1
//Tony
of interest here. They are myDate and myLoopnrdag
I want to find the maximum value of myLoopnrdag for each group of mydate.
In this example I want to find 11 for myDate 2013-05-03 and
9 for myDate 2013-05-05 and
12 for myDate 2013-05-08 and
8 for myDate 2013-05-10
How do I write a Linq to dataset query that do that ?
Here is an example
myDate myLoopnrdag
2013-05-03 5
2013-05-03 11
2013-05-03 4
2013-05-05 2
2013-05-05 9
2013-05-05 3
2013-05-08 12
2013-05-08 10
2013-05-08 7
2013-05-10 6
2013-05-10 8
2013-05-10 1
//Tony