Alternativt till ISNULL
/ COALESCE
alternativ, kan du testa parametrarna för att vara null:
SELECT NAME
FROM TABLE
WHERE
(@City IS NULL OR City = @City)
AND
(@Gender IS NULL OR Gender = @Gender)
AND
(@Age IS NULL OR Age = @Age)