If the number of tiers is fixed, I think you're going to need to join the table to itself for the number of tiers you have. Like this:
SELECT lev0.PK, lev0.Name, lev0.DisplayOrder, lev1.PK, lev1.Name, lev1.DisplayOrder, lev2.PK, lev2.Name, lev2.DisplayOrder
from
(
SELECT * FROM TIER WHERE...
At the end of the proc where you're building the WHERE clause, you need to put quotes back onto @strAssignedRecruiter in order to use it in your built SQL statement.
This should do it:
SET @strWhere = @strWhere + ' AND tblJobRequisitions.strAssignedRecruiter = ''' + @strAssignedRecruiter + ''''
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.