I was wondering if it\'s possible to do something like this (which doesn\'t work):
select cast( (exists(select * from theTable where theColumn like \'theValue
Another solution is to use ISNULL in tandem with SELECT TOP 1 1:
ISNULL
SELECT TOP 1 1
SELECT ISNULL((SELECT TOP 1 1 FROM theTable where theColumn like 'theValue%'), 0)