SQL ignore part of WHERE if parameter is null I have a stored procedure that fetches info from a table based on 4 parameters.