[Qgis-user] replace a column content

Anita Graser anitagraser at gmx.at
Sat Mar 1 07:46:28 PST 2014


Hi Nuno,

Am 01.03.2014, 14:36 Uhr, schrieb Nuno de Santos Loureiro  
<nlourei at ualg.pt>:
> In one of them I have 's', 'n', 'nc', or NULL.
> I need to change 's' by 'yes', 'nc' by 'yes', 'n' by 'no' and NULL by  
> 'no'.

In Field Calculator you could use:

CASE WHEN column IN ('s','nc') THEN 'yes' ELSE 'no' END

Best wishes,
Anita


-- 
anitagraser.com



More information about the Qgis-user mailing list