Commit aaeaaf41 authored by Craig Earley's avatar Craig Earley
Browse files

type_name populated in calls

parent 73b3d4b0
......@@ -60,7 +60,7 @@ insert into place (addr, lat, long, city) select distinct address, lat, long, ci
-- -- locations are processed, now use that
-- create table calls (call_id char(15), place_id real, date date, time time, type_name char(15));
-- fix this one:
insert into calls (call_id, place_id, date, time) select calls_csv.call_id, place.place_id, calls_csv.date, calls_csv.time from calls_csv inner join place on place.addr = calls_csv.address;
insert into calls (call_id, place_id, date, time, type_name) select calls_csv.call_id, place.place_id, calls_csv.date, calls_csv.time, calls_csv.complaint from calls_csv inner join place on place.addr = calls_csv.address;
-- -- incident hierarchy
insert into call_type (complaint_name, type_name) select distinct upper(complaint), upper(complaint) from calls_csv;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment