Home Forums SQL Server 2008 SQL Server Newbies COUNT of values in a column RE: COUNT of values in a column
Ed Wagner
SSC Guru
Points: 287024
More actions
April 7, 2014 at 10:16 am
#1703872
Your insert failed because in the line below, you're missing a quote after Ray:
(N'Products', N'Ray),
To get the count of each row:
select page, COUNT(*) row_count
from visited
group by page;
Tally Tables - Performance PersonifiedString Splitting with True PerformanceBest practices on how to ask questions