Du kan gøre det ved at bruge ELLER:
SELECT * FROM Person WHERE Status = @Status OR @Status IS NULL
Eller UNION ALLE:
SELECT * FROM Person WHERE Status = @Status
UNION ALL
SELECT * FROM Person WHERE @Status IS NULL
Du kan gøre det ved at bruge ELLER:
SELECT * FROM Person WHERE Status = @Status OR @Status IS NULL
Eller UNION ALLE:
SELECT * FROM Person WHERE Status = @Status
UNION ALL
SELECT * FROM Person WHERE @Status IS NULL