I have a case
statment (see below) but I always want to return a value even if nothing matches the WHERE
clase. Is that possible? Thanks
SELECT
CASE
WHEN COUNT(*) > 10 THEN 1
ELSE 0
END
FROM
fldt_QueryDSLAM lastDay
WHERE AccountID = @acc
AND lastDay.DSL = @dsl
GROUP BY lastDay.DSL