And if you set MaxRecords=1 and get [0,1] rows with the value?
SELECT TOP(1) 1
FROM documents
WHERE status=submitted
UNION ALL
SELECT TOP(1) 2
FROM documents
WHERE status=completed
UNION ALL
SELECT 3
And if you set MaxRecords=1 and get [0,1] rows with the value?
SELECT TOP(1) 1
FROM documents
WHERE status=submitted
UNION ALL
SELECT TOP(1) 2
FROM documents
WHERE status=completed
UNION ALL
SELECT 3