howzabout this?create table Actions ([Date] int, [Action] varchar(10))insert into Actions select 1,'Meeting'insert into Actions select 1,'Holiday'insert into Actions select 1,'Meeting'insert into Actions select 1,'Sick day'insert into Actions select 2,'Meeting'insert into Actions select 2,'Meeting'insert into Actions select 3,'Meeting'select [action], count(date) as [# of Actions]from Actionsgroup by [action]order by [action]drop table Actions
Help us help YOU!Read this blog entry for more details: http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx*need more coffee*SELECT * FROM Users WHERE CLUE > 0(0 row(s) affected)