FireCARES / data

Keeps track of sources and issues related to data in FireCARES.
MIT License
0 stars 1 forks source link

Add 2013 data to the NFIRS database. #3

Closed garnertb closed 9 years ago

garnertb commented 9 years ago
garnertb commented 9 years ago

@meilinger, I have a shapefile with the geometry for these records which I will send to you. Once you receive it, please up the geom field one the incidentaddress table with it.

garnertb commented 9 years ago

Load 2013 records for the NFIRS data base into the production NFIRS db.

QC

Issues

Fixes

delete from hazmobprop where substring(inc_date, 6,1)='/' and right(inc_date, 4)='2013'; delete from hazmat where substring(inc_date, 6,1)='/' and right(inc_date, 4)='2013'; delete from hazchem where substring(inc_date, 6,1)='/' and right(inc_date, 4)='2013'; delete from ffequipfail where ctid not in (select min(ctid) from ffequipfail where right(inc_date, 4)='2013' group by state, fdid, inc_date, inc_no, exp_no, cas_seq_no, eqp_seq_no, version, equip_item, eqp_prob, eqp_man, eqp_mod, eqp_ser_no) and right(inc_date, 4)='2013'; delete from hazmatequipinvolved where substring(inc_date, 6,1)='/' and right(inc_date, 4)='2013';