[Qgis-user] Select by Expression: exclusive (not inclusive)

Andy Harfoot ajph at geodata.soton.ac.uk
Wed Jul 21 06:38:43 PDT 2021


Out of curiosity, what happens if you execute the same query via the 
Virtual layer dialog or through the DB Manager? This would highlight any 
differences between QGIS Expression SQL and a DBMS (the SQLite engine).

On 15/07/2021 08:17, Andrew Hughes wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Thanks Marco,
>
> You've answered my question, so thank you. For reference, I've never 
> see this in any sql rmdbs.
>
> Some examples my help the community, hopefully I will be able to 
> contribute sooner or later.
>
> Thanks again!
> Andrew
>
>
> On Wed, 7 Jul 2021 at 17:43, GMAIL <casalbonim at gmail.com 
> <mailto:casalbonim at gmail.com>> wrote:
>
>     This is how sql works.
>     You want to apply a function to one column, and the column you are
>     comparing must have a value.
>     Consider this: tag_service != 'xxx' or null != 'xxx'. Null can't be
>     equal or unequal to any value. Even null = null or null != null
>     returns
>     false
>
>     hth
>     marco
>     _______________________________________________
>     Qgis-user mailing list
>     Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7Ccb5a3837f5c045be498a08d94760b7ff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637619302991084505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=4yZ32TYvm3I0wsYKpX%2BB5HUCvfrdgMede8HlJfDO%2BrU%3D&reserved=0>
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7Ccb5a3837f5c045be498a08d94760b7ff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637619302991094454%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SMn94shPZU67YFZMNvrr%2FJP2lW6K6TuKJ874dlJOGow%3D&reserved=0>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Andy Harfoot

Skype: gdi_ajph
Teams: ajph at soton.ac.uk

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

www.geodata.soton.ac.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210721/090e9d9a/attachment-0001.html>


More information about the Qgis-user mailing list