-- DBMS: snowflake
create or replace TABLE SFFD_SERVICE_CALLS (
	"call_number" NUMBER(38,0),
	"unit_id" VARCHAR(16777216),
	"incident_number" NUMBER(38,0),
	"call_type" VARCHAR(16777216),
	"call_date" DATE,
	"watch_date" DATE,
	"received_timestamp" NUMBER(38,0),
	"entry_timestamp" NUMBER(38,0),
	"dispatch_timestamp" NUMBER(38,0),
	"response_timestamp" NUMBER(38,0),
	"on_scene_timestamp" NUMBER(38,0),
	"transport_timestamp" NUMBER(38,0),
	"hospital_timestamp" NUMBER(38,0),
	"call_final_disposition" VARCHAR(16777216),
	"available_timestamp" NUMBER(38,0),
	"address" VARCHAR(16777216),
	"city" VARCHAR(16777216),
	"zipcode_of_incident" VARCHAR(16777216),
	"battalion" VARCHAR(16777216),
	"station_area" VARCHAR(16777216),
	"box" VARCHAR(16777216),
	"original_priority" VARCHAR(16777216),
	"priority" VARCHAR(16777216),
	"final_priority" NUMBER(38,0),
	"als_unit" BOOLEAN,
	"call_type_group" VARCHAR(16777216),
	"number_of_alarms" NUMBER(38,0),
	"unit_type" VARCHAR(16777216),
	"unit_sequence_in_call_dispatch" NUMBER(38,0),
	"fire_prevention_district" VARCHAR(16777216),
	"supervisor_district" VARCHAR(16777216),
	"row_id" VARCHAR(16777216),
	"latitude" FLOAT,
	"longitude" FLOAT,
	"neighborhood_name" VARCHAR(16777216),
	"location_geom" BINARY(8388608)
);

INSERT INTO "SAN_FRANCISCO_PLUS"."SAN_FRANCISCO_SFFD_SERVICE_CALLS"."SFFD_SERVICE_CALLS" (location_geom, latitude, als_unit, watch_date, priority, on_scene_timestamp, hospital_timestamp, entry_timestamp, transport_timestamp, call_type, final_priority, call_number, incident_number, call_type_group, response_timestamp, call_final_disposition, dispatch_timestamp, station_area, fire_prevention_district, unit_type, address, original_priority, neighborhood_name, longitude, supervisor_district, available_timestamp, received_timestamp, city, zipcode_of_incident, battalion, unit_sequence_in_call_dispatch, call_date, unit_id, number_of_alarms, box, row_id) VALUES (NULL, nan, False, '2020-12-05', '2', 1607130613000000.0, NULL, 1607171700000000, NULL, 'Medical Incident', 2, 203401353, 20138897, NULL, 1607171700000000, 'Other', 1607171700000000, NULL, NULL, 'CHIEF', NULL, '2', NULL, nan, NULL, 1607133256000000, 1607171700000000, NULL, NULL, 'B12', 1, '2020-12-05', 'BLS839', 1, NULL, '203401353-BLS839'), (NULL, nan, False, '2021-01-04', '2', nan, NULL, 1609727371000000, NULL, 'Medical Incident', 2, 210041909, 21001529, NULL, 1609727371000000, 'Other', 1609727371000000, NULL, NULL, 'SUPPORT', NULL, '2', NULL, nan, NULL, 1609730976000000, 1609727371000000, NULL, NULL, 'B12', 1, '2021-01-04', 'IMT', 1, NULL, '210041909-IMT'), (NULL, nan, False, '2015-01-23', '2', 1421986870000000.0, NULL, 1421986870000000, NULL, 'Administrative', 2, 150232425, 15008984, NULL, 1421986870000000, 'Other', 1421986870000000, NULL, NULL, 'SUPPORT', NULL, '2', NULL, nan, NULL, 1421996053000000, 1421986870000000, NULL, NULL, 'B10', 1, '2015-01-23', 'BE1', 1, NULL, '150232425-BE1'), (NULL, nan, False, '2015-09-11', '3', 1441936017000000.0, NULL, 1441936017000000, NULL, 'Mutual Aid / Assist Outside Agency', 3, 152541994, 15097133, 'Fire', 1441936017000000, 'Fire', 1441936017000000, NULL, NULL, 'MEDIC', NULL, '3', NULL, nan, NULL, 1441936066000000, 1441936017000000, NULL, NULL, 'B99', 3, '2015-09-11', '71', 1, NULL, '152541994-71'), (NULL, nan, False, '2020-08-13', '2', 1597322311000000.0, NULL, 1597322311000000, NULL, 'Medical Incident', 2, 202261481, 20092766, NULL, 1597322311000000, 'Other', 1597322311000000, NULL, NULL, 'CHIEF', NULL, '3', NULL, nan, NULL, 1597283071000000, 1597322311000000, NULL, NULL, 'B12', 1, '2020-08-13', 'BLS839', 1, NULL, '202261481-BLS839');