Hello

Need a quick help, with a query...

I need to get a list of distinct names inside the data table and the sum of values for each one.
I know some basic stuff about linq, but i don't know how to put the distinct and the sums together.

The SQL Query:
SQL Code:
  1. SELECT DISTINCT username,
  2.                 [Sum1] = SUM(day1),
  3.                 [Sum2] = SUM(day2)
  4. FROM dbo.History
  5. WHERE username LIKE '%something%'
  6. GROUP BY username

How can i do this query in linq?

Thanks