3

Having some difficulty figuring out "and" statements as i am quite new to GIS. What errors am I making in this statement here?

STATUS = 'QC Required' and WORKFROMHOMEEMPLOYEES = 'NULL'

4
  • Since we don't know your data or your intentions, we don't know. What should happen?
    – Erik
    Commented May 26, 2022 at 15:48
  • id like it to select data from 'qc required' and then from the qc required records to select ones that have null values Commented May 26, 2022 at 15:55
  • 2
    try ... and WORKFROMHOMEEMPLOYEES is null
    – Bera
    Commented May 26, 2022 at 16:04
  • 1
    See What is the difference between != NULL and IS NOT NULL in QGIS filter expressions? - the answers there explain the workings of NULL
    – Midavalo
    Commented May 26, 2022 at 16:25

1 Answer 1

5

Use is Null to select Null values. By using = 'NULL' you select a string containing this word. So use:

STATUS = 'QC Required' and WORKFROMHOMEEMPLOYEES IS NULL
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.