[Qgis-community-team] Problem in working with Select by expession tool

Yves Jacolin yjacolin at free.fr
Wed Jul 6 04:26:56 PDT 2016


On Wednesday, July 06, 2016 0:44:13 Wifra wrote:
> Hello guysl
> 
> I'm getting a bit challenges on querying multiple Regions from country
> Shapefile consisting about 30 regions, can anyone please help me with proper
> syntax of writting the expression to sellect about 3 different regions from
> country shape file?
> 
> Thanks
> 
Wifra,

This mailing list is to discussed about documentation and other community 
related. Not for use of QGIS. There is a QGIS-user mailing list for this 
purpose.

To answer to your question, go to the property of the layer, go to the general 
tab and click on the "Query builder" button and add this:

"region" = 'Savoie' OR "region" = "Vienne" OR "region" = 'Alsace'

You can also use this:

"region" IN ('Savoie', 'Vienne', 'Alsace')

Here:
* region is the attribute name
* Savoie, Vienne, Alsace are different value of region

Y.
PS : for french people: yes these values are not french region :)



More information about the Qgis-community-team mailing list