1: 2: 3: 4: 5: 6: 7: 8:
( select count (ta.transactiontime) from transactionaudit ta where ta.outcometype = 1 and ta.username = ud.username and ta.updatedatetime= '1 jan 2008' ) as transaction_count
1: 2: 3: 4: 5:
select ta.username, count(ta.transactiontime) as transaction_count from transactionaudit ta where ta.outcometype = 1 and ta.username = 'any user name' -- Leave this line off for a list of all users and their counts Group by ta.username