i think i need some help: caseWhen (SELECT count(userid) FROM dbo.EmployeeInfo where supervisorname = REPLACE(SUSER_SNAME(), 'rxsol\', '')) > 0 then select * from dbo.employeeinfo where supervisorname = REPLACE(SUSER_SNAME(), 'rxsol\', '') When (SELECT count(userid) FROM dbo.EmployeeInfo where managername = REPLACE(SUSER_SNAME(), 'rxsol\', '')) > 0 then select * from dbo.employeeinfo where managername = REPLACE(SUSER_SNAME(), 'rxsol\', '') When (SELECT count(userid) FROM dbo.EmployeeInfo where directorname = REPLACE(SUSER_SNAME(), 'rxsol\', '')) > 0 then select * from dbo.employeeinfo where directorname = REPLACE(SUSER_SNAME(), 'rxsol\', '')end
the when statement needs to change per case, does that make sense?