select a.id, "posit" = case when a.value > 0 then 'pos' else null end , "negat" = case when a.value < 0 then 'neg' else null end from table a ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)