SELECT SUM(CountMyCol) AS SumOfZK FROM( (SELECT COUNT(x) CountMyCol FROM MyTable WHERE z=0) UNION ALL (SELECT COUNT(x) CountMyCol FROM MyTable WHERE k=1))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)