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)
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)