views:

72

answers:

0

Suppose we have a table T with two fields A and B, both decimal.

How would I wite an L2S query that produces this T-SQL ?

SELECT SUM(T.A), SUM(T.B) FROM T

The idea is NOT to pull in all the records and do a sum in memory...