Sæt dem sammen med nogle OR-udsagn:
SELECT *
FROM
Customer c
WHERE
example@sqldat.com
AND ( example@sqldat.com OR @CountyID IS NULL )
AND ( example@sqldat.com OR @CityID IS NULL )
For hver af disse parametre, hvis den er null, ignoreres kontrollen grundlæggende.