In my stored procedure I need a single parameter that will give me a potential of 3 values.
So I can do something like:
@p1 <-- my parameter
IF (@p1 ???) -- include users
SELECT * FROM USERS
IF (@p1 ???) -- include employees
SELECT * FROM employees
IF (@p1 ???) -- iclude customers
SELECT * FROM CUSTOMERS
I am guessing I will have to do some bit banging, but not sure how to do it in sql.
Update
I am actually doing a UNION of sort.