Du kan göra det med ELLER:
SELECT * FROM Person WHERE Status = @Status OR @Status IS NULL
Eller FÖRENA ALLA:
SELECT * FROM Person WHERE Status = @Status
UNION ALL
SELECT * FROM Person WHERE @Status IS NULL
Du kan göra det med ELLER:
SELECT * FROM Person WHERE Status = @Status OR @Status IS NULL
Eller FÖRENA ALLA:
SELECT * FROM Person WHERE Status = @Status
UNION ALL
SELECT * FROM Person WHERE @Status IS NULL