Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Data Science
emergency-calls
Commits
aa18d48b
Commit
aa18d48b
authored
Nov 01, 2016
by
Craig Earley
Browse files
added view to show call_id, agency_name rather than agency_id
parent
f985acbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
911_tables.sql
View file @
aa18d48b
...
...
@@ -45,5 +45,6 @@ update call_category set group_id = call_group.group_id from call_group where ca
update
call_category
set
group_id
=
call_group
.
group_id
from
call_group
where
call_group
.
group_name
=
'misc'
and
cat_name
like
'misc%'
;
-- -- create any useful views
create
view
responding_agencies
as
(
select
response
.
call_id
,
agency
.
agency_name
from
response
inner
join
agency
on
response
.
agency_id
=
agency
.
agency_id
);
commit
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment