select case when null then a else b end