<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>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). </p>
    <div class="moz-cite-prefix">On 15/07/2021 08:17, Andrew Hughes
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAMvYC1UA_yHBQhbEppm5iCWWduzA2Zq5Ke4Ks4pVFU41sRRk1Q@mail.gmail.com">
      
      <div style="padding-bottom: 10px; padding-top: 5px;">
        <div style="padding:12px; border:1px solid #8D3970;
          background-color:#F7F9FA; color:#8D3970; font-size:14px;
          line-height:22px; font-family: Calibri, Arial, Helvetica,
          sans-serif;">
          <strong>CAUTION:</strong> This e-mail originated outside the
          University of Southampton.
        </div>
      </div>
      <div>
        <div dir="ltr">Thanks Marco,
          <div><br>
          </div>
          <div>You've answered my question, so thank you. For reference,
            I've never see this in any sql rmdbs.<br>
          </div>
          <div><br>
          </div>
          <div>Some examples my help the community, hopefully I will be
            able to contribute sooner or later.</div>
          <div><br>
          </div>
          <div>Thanks again!</div>
          <div>Andrew</div>
          <div><br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Wed, 7 Jul 2021 at 17:43,
            GMAIL <<a href="mailto:casalbonim@gmail.com" moz-do-not-send="true">casalbonim@gmail.com</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            This is how sql works.<br>
            You want to apply a function to one column, and the column
            you are <br>
            comparing must have a value.<br>
            Consider this: tag_service != 'xxx' or null != 'xxx'. Null
            can't be <br>
            equal or unequal to any value. Even null = null or null !=
            null returns <br>
            false<br>
            <br>
            hth<br>
            marco<br>
            _______________________________________________<br>
            Qgis-user mailing list<br>
            <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a><br>
            List info: <a href="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" originalsrc="https://lists.osgeo.org/mailman/listinfo/qgis-user" shash="ElI3YVahlbHOb8lHqwfkh2uWJkq3UFNauDFIg4/6rDJeZolIfThsBG5HB6cvuLX/XA1sHhGChTCs6w/KxASWpDCcFni6Qg06zvQi9p23wSwc+tLR8kGQvGAan+gvMILeNND+wAOTlmzVA6UYVHvdMhgF2NRmPt6k9nqd+Bb03lk=" rel="noreferrer" target="_blank" moz-do-not-send="true">
              https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
            Unsubscribe: <a href="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" originalsrc="https://lists.osgeo.org/mailman/listinfo/qgis-user" shash="Xzw7zV/Ih7iihgRltcG1QH8weOm+6uf+nsVxn6XwNOFrjwU74YFZqBx5ESjdrnideso5Qd2E8FD/ZIpU33U5erUeS6STGO/hAogPCm6kHJp/CJiqbPzyC9Y5slsL0VRkFyym62hai23dZiHFhTNPufCwklQnt4mLjU3ZwodKARc=" rel="noreferrer" target="_blank" moz-do-not-send="true">
              https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Andy Harfoot

Skype: gdi_ajph
Teams: <a class="moz-txt-link-abbreviated" href="mailto:ajph@soton.ac.uk">ajph@soton.ac.uk</a>

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

<a class="moz-txt-link-abbreviated" href="http://www.geodata.soton.ac.uk">www.geodata.soton.ac.uk</a></pre>
  </body>
</html>