I have a report that is generated from a table that looks like
id
name
etc.
FA_SCHOLARSHIP
WI_SCHOLARSHIP
SP_SCHOLARSHIP
SU_SCHOLARSHIP
Where zero or more of the 4 scholarship columns will contain "Y"
I want the user to enter FA, WI, SP OR SU into a single prompt. So if they enter "FA" I only want records to display if there's a Y in FA_SCHOLARSHIP. If the user enters "WI" I only want records to display if there's a Y in WI_SCHOLARSHIPS, and so on if SP or SU was entered.
What is the best way to handle this in my stored procedure.
id
name
etc.
FA_SCHOLARSHIP
WI_SCHOLARSHIP
SP_SCHOLARSHIP
SU_SCHOLARSHIP
Where zero or more of the 4 scholarship columns will contain "Y"
I want the user to enter FA, WI, SP OR SU into a single prompt. So if they enter "FA" I only want records to display if there's a Y in FA_SCHOLARSHIP. If the user enters "WI" I only want records to display if there's a Y in WI_SCHOLARSHIPS, and so on if SP or SU was entered.
What is the best way to handle this in my stored procedure.