I want to return the records in this case that have company ABC... and contact is null. It will not return anything when @Contact
is null. Or any variable for that matter. Ideas?
DECLARE @Customer NVARCHAR(40) = 'ABC Company',
@Contact NVARCHAR(40) = NULL
SELECT
Company
FROM
company
WHERE
contact = @Contact AND customer = @Customer
Thanks, EB