Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Whats wrong with this basic sql statment?

Author  Topic 

doors37
Starting Member

1 Post

Posted - 2012-06-12 : 11:02:16
SELECT T.TS_NAME ,
COUNT(T.TS_TEST_ID)
FROM TEST T

I get an error stating SQL returned with the following error, and it just lists the sql statment

Vack
Aged Yak Warrior

530 Posts

Posted - 2012-06-12 : 11:13:47
Try
SELECT T.TS_NAME ,
COUNT(T.TS_TEST_ID)
FROM TEST T
group by t.TS_NAME
Go to Top of Page
   

- Advertisement -