case when factsqy is NULL then '0' when factsqy is NOT NULL then factsqy end as factqtys case when factsqy is NULL then '0' when factsqy is NOT NULL then factsqy end as factqtys