Posted: Tue Aug 02, 2005 11:52 am
the second statement doesnt run in sql server. I m trying to run the query i get the error:
Line 1: Incorrect syntax near ')'
thanks
shivan
Line 1: Incorrect syntax near ')'
thanks
shivan
ray.wurlod wrote:Try these queries against the database.What do these tell you about grouping?Code: Select all
SELECT COUNT(*) FROM tablename; SELECT COUNT(*) FROM (SELECT A,COUNT(*) FROM tablename GROUP BY A);