Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Totaling Duplicate Records
  2. 1 John Doe $100.50
  3. 2 John Doe $51.23
  4. Total Amount:$151.73
  5. 3 Jane Doe $100.01
  6. 4 Jim Johns $94.05
  7. 4 Jim Johns $5.00
  8. Total Amount:$99.05
  9.        
  10. var duplicates = from p in db.People
  11.                  join p by p.Name into g
  12.                  select new{g.Name, Sum => g.Sum(g.Price)};