Z X,
First off this forum is for SQL Anywhere, so your question is more suitable to be asked in
http://scn.sap.com/community/hana-in-memory .
However, looking at our HANA SQL Help page, it seems like it does not support IF-ELSE clause, instead they use CASE expression.
So,
I believe if you ran
SELECT COUNT(*) as CNT_TOT, SUM(CASE WHEN var1='""' THEN 1 ELSE 0 END) AS CNT1_MISSING
, might work, given that HANA SQL supports conditional statement inside SUM Aggregations.