Quantcast
Channel: is it possible to select EXISTS directly as a bit? - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by anar khalilov for is it possible to select EXISTS directly as a bit?

$
0
0

Another solution is to use ISNULL in tandem with SELECT TOP 1 1:

SELECT ISNULL((SELECT TOP 1 1 FROM theTable where theColumn like 'theValue%'), 0)

Viewing all articles
Browse latest Browse all 10

Trending Articles



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