I tried this simple select to get all the EMPLIDs that have MSDN subscriptions. There is a function that translates the EMPLID to another Employee Number. The function works by itself:This function simply returns a cross-referenced EMPLID:--Usage dbo.XRefEMPLID:--select * from HR_NSV_PM WHERE EMPLID = dbo.XRefEMPLID('A561491')--First, I tried a JOIN instead of a WHERE clause which gave me an error that Subquery returned more than 1 value:select HR.* from HR_NSV_PM HRinner join MSDN_Subscriptions MSDN ON HR.EMPLID = dbo.XRefEMPLID(MSDN.EmployeeID)Then, I removed the JOIN and I tried some where clauses and got no records:--where exists (select HR.EMPLID from MSDN_Subscriptions where MSDN_Subscriptions.EmployeeID = dbo.XRefEMPLID(HR.EMPLID))--where exists (select MSDN_Subscriptions.EmployeeID from MSDN_Subscriptions where MSDN_Subscriptions.EmployeeID = dbo.XRefEMPLID(HR.EMPLID))
Thank you in advance for any help here.Duane