I need to get the number of items that have a comment but I cant get this SQL statement to work for me........any advice?
Select count(Name) as TotalComments
from TableName where comment <> ''
order by ID
Error Message:
Column "TableName.ID" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause.
What am I missing exactly?