Skip to main content
added 4 characters in body; edited tags; edited title
Source Link
sth
  • 231k
  • 56
  • 288
  • 370

LINQ -- How do I perform aggregation without the "group by" in Linq?

Everything I can find in linq for aggregation has a "group by" clause. How would I write this query in LINQ? I have a list of date-value pairs, and I want to take the average of the values.:

SELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff

SELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff

LINQ -- How do I perform aggregation without the "group by"

Everything I can find in linq for aggregation has a "group by" clause. How would I write this query in LINQ? I have a list of date-value pairs, and I want to take the average of the values.

SELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff

How do I perform aggregation without the "group by" in Linq?

Everything I can find in linq for aggregation has a "group by" clause. How would I write this query in LINQ? I have a list of date-value pairs, and I want to take the average of the values:

SELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff

Good morning,

Everything I can find in linq for aggregation has a "group by" clause. How would I write this query in LINQ? I have a list of date-value pairs, and I want to take the average of the values.

SELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff

Regards, Alan.

Good morning,

Everything I can find in linq for aggregation has a "group by" clause. How would I write this query in LINQ? I have a list of date-value pairs, and I want to take the average of the values.

SELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff

Regards, Alan.

Everything I can find in linq for aggregation has a "group by" clause. How would I write this query in LINQ? I have a list of date-value pairs, and I want to take the average of the values.

SELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff

edited tags
Link
Adam Lassek
  • 35.5k
  • 14
  • 94
  • 109
added 103 characters in body
Source Link
AlanR
  • 1.2k
  • 4
  • 14
  • 26
Loading
Source Link
AlanR
  • 1.2k
  • 4
  • 14
  • 26
Loading