Answers for "querydsl group by sum example"

SQL
0

linq sum group by

var result = source
    .GroupBy(x => x.Currency)
    .Select(g => new {
        Currency = g.Key,
        Total = g.Sum(x => x.FeesCustom > 0 ? x.FeesCustom : x.FeesNormal)
    });
Posted by: Guest on March-12-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language