I have a stored procedure that I pass a parameter with
null default. I would like to build a SQL query based on
the values of the parameters I pass. How would I use a
conditional statement to write the query without repeating
the whole query string for each condition?
If there is a sample somewhere, please reference it.