Hi-
I thought that this should be easy and I was able to do this...nope.
i need to sum a value for each distinct count. Having read a few post, i think i need an over() function.
select distinct
[Training Title],
[Training Type],
count(CASE WHEN [user id] IS NULL THEN 0 ELSE 1 END) as 'Number',
sum(cast([training hours] as float)) as 'Total Hours',
count([training object id]) as 'Offerings'
-- this is duping, think i need an count([training object id]) over(PARTITION BY [TRAINING TITLE] )
from q2_2014
where [training type] = 'session'
group by
[Training Title],
[Training Type]