There are separate queries attached to this solution - one for Biotics5 (Oracle SQL) and one for Biotics6 (PostgreSQL).
WHY PERFORM THE QC: During the exchange of ELEMENT_SUBNATIONAL data from a local Network Program database to the central NatureServe database, records with a subnation value that does not match the exporting installation's subnation will be rejected.
WHAT THE QUERY DOES: This query finds ELEMENT_SUBNATIONAL records where the subnation (in ELEMENT_SUBNATIONAL.SUBNATION_ID) does not match your installation’s subnation.
ACTION: Check these records to see if the subnation entry is correct. If not, create a new ELEMENT_SUBNATIONAL record with the same parent ELEMENT_NATIONAL record but with the correct subnation, copy the data from the incorrect record and reparent any EOs, and then delete the incorrect record.