I have a query with two nullable bit flag columns and I would like to coalesce those in result set into single flag:
COALESCE(flagA, flagB) as FlagAB