Oracle SQL - Not Exists - string does not exist in a list of values
问题 Background: For a SPRIDEN_id, sprhold_hldd_code may have one or more of several values or NO values. I need to select SP.SPRIDEN_ID, SP.SPRIDEN_LAST_NAME, SP.SPRIDEN_FIRST_NAME, SR.SHRDGMR_SEQ_NO, SR.SHRDGMR_PROGRAM Where (sh.sprhold_hldd_code = 'RH') does not exist. So far, no records are returned. I have found that if I put a code that is not in the list of possible values (such as Z) in sh.sprhold_hldd_code = 'Z', then it will return results. DATA: (column names abbreviated) SPRIDEN_ID