Closed AmandaDoyle closed 4 years ago
SELECT * FROM dep_cats_permits.latest
WHERE TRIM(status) != 'CANCELLED'
AND LEFT(applicationid, 1) != 'G'
AND LEFT(applicationid, 1) != 'C'
AND NOT (LEFT(applicationid, 1) = 'P'
AND (requesttype = 'REGISTRATION'
OR requesttype = 'REGISTRATION INSPECTION'
OR requesttype = 'BOILER REGISTRATION II'));
Filtering out cases where LEFT(applicationid, 1) = 'C'
might need to happen after geocoding if the review subset in #80 needs to be geocoded.
Remove the following records from the DEP Permits dataset