martedì 8 febbraio 2011

Sql uso di if/case nelle query

 select (case when replace(business,',','')='si' then '2' when replace(business,',','')='no' then '1' else '1'end) from cliente where status='abilitato';

Nessun commento: