NYCPlanning / db-developments

🏠 🏘️ 🏗️ Developments Database
https://nycplanning.github.io/db-developments
8 stars 2 forks source link

`datepermit` field is NULL for all records where `datasource = 'now'` #500

Closed AmandaDoyle closed 2 years ago

AmandaDoyle commented 2 years ago

datepermit field is NULL for all records where datasource = 'now'

AmandaDoyle commented 2 years ago

AD notes from 04/13

AmandaDoyle commented 2 years ago

All "permitissueddate" values in the DOB NOW source data are NULL for the subset of records that we include in DevDB. We select records that contain "New" or "CO" in the jobtype field and have a job number ending in 'I1.' Therefore, based on this there is no issue with the data in DevDB.

td928 commented 2 years ago

Update Jun 23rd 2022 from DOB copied over from DOB emails thread

Example: Job Filing = M00123456-I1 Search Work Permit entity for all work permits where “Go To Job Filing” = M00123456-I1 Return the earliest/minimum of (Permit Issued Date)

Date_Permittd

Longform Name: Date Permitted (Status Q) Old Name: status_q Description: Date of job status Q (first partial permit issuance). This is when construction work may begin. This field should be used for identifying the number of permits approved in a given year. How it is created:

This field is mapped from the earliest date in the dob_permitissuance field issuancedate

DD_DOB_NOW_Build_Approved_Permits_DCP.xlsx