Is it possible to Group on a calculated ?
I'm trying the following
SELECT field1, field2 + field3 AS field4, SUM(field5)
FROM Table1
GROUP BY field1, field4
but receive
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'field4'
Initially I presumed that it couldn't group on...