Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Using If's and selects

$
0
0

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




Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>