cancel
Showing results for 
Search instead for 
Did you mean: 

"column is invalid in the select list"

Former Member
0 Kudos

I just recently moved over to Sybase ASE after having used Microsoft SQL Server for many years.  I notice that I'm no longer getting the error I occasionally got in SQL Server when using GROUP BY:

"xxxx" is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

I notice that when Sybase ASE is presented with a column in the SELECT clause that's not contained in either an aggregate function or the GROUP BY clause, rather than generating an error it simply returns all the potential rows with all possible values that it thinks you could be asking for.  Am I wrong here?  Is there a difference in how Sybase ASE SQL and Microsoft SQL handle this situation?

Accepted Solutions (0)

Answers (0)