06-19-2014 11:03 AM
What I am trying to do is create a report that takes the userid of the person runing the report and pulls in all of the userid/username that reports to the person running the report.
06-19-2014 11:19 AM
SELECT [USERID]
FROM [USERSECURITY] WHERE MANAGERID = {ManagerId}
06-19-2014 11:30 AM
Thanks
But what I am struggling with is getting the actual names for a report.
@CollinCampbell wrote:
SELECT [USERID]
FROM [USERSECURITY] WHERE MANAGERID = {ManagerId}
06-19-2014 11:39 AM
SELECT US.[USERID]
,US.[USERCODE]
,UI.USERNAME
FROM [USERSECURITY] US JOIN [USERINFO] UI ON US.USERID = UI.USERID
WHERE MANAGERID = {ManagerId}