Home Forums SQL Server 2005 SQL Server Newbies SQL Query TO Group Accounts and company names RE: SQL Query TO Group Accounts and company names
yusufm 48726
SSC Eights!
Points: 858
More actions
May 22, 2015 at 4:44 am
#1799953
when I ran the below query
I got this error
Msg 8121, Level 16, State 1, Line 12
Column 'SalesOrder.DateEntered' is invalid in the HAVING clause because it is not contained in either an aggregate function or the GROUP BY clause.