I have a stored procedure with a parameter name which I want to use in a where clause to match the value of a column i.e. something like
name
where
SELECT * FROM table WHERE paramater IS NULL OR column = parameter;