Delete the classa_complete and classa_incmpl fields.
Create a new field called units_co located after otherb_prop that is populated with the number of units from the most recent certificate of occupancy. (co_latest_units as units_co)
JOBNUMBER_co_prop_mismatch AS (
SELECT job_number
FROM MID_devdb
WHERE job_type = 'New Building'
AND classa_complt::numeric - classa_prop::numeric > 50
),
Delete the classa_complete and classa_incmpl fields.
Create a new field called
units_co
located afterotherb_prop
that is populated with the number of units from the most recent certificate of occupancy. (co_latest_units as units_co
)