try this:
select *from ( select distinct rd.UserID,sm.EmpNameC from RawData as rd inner join StaffMaster as sm on rd.UserID=sm.UserIdN) t1 inner join
(select count(UserId),userId from RawData where TimeEntry between '06/Nov/2014 09:00:00 AM' and '06/Nov/2014 10:00:00 AM' group by userId) t2 on t1.userId=t2.userId
The Syntax is :
select *from (select userId,name from table1)t1 inner join (select count(userid),name from table2)t2 on t1.userId=t2.userId