-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edc1ceb
commit a9e96b6
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* Sprint 17 View Changes to STR DSS */ | ||
|
||
drop view if exists dss_local_gov_vw; | ||
|
||
CREATE OR REPLACE VIEW dss_local_gov_vw AS | ||
SELECT do2.organization_id | ||
, do2.organization_type | ||
, do2.organization_cd | ||
, do2.organization_nm | ||
, do2.local_government_type | ||
, lgt.local_government_type_nm | ||
, do2.business_licence_format_txt | ||
FROM dss_organization do2 | ||
left join dss_local_government_type lgt on lgt.local_government_type = do2.local_government_type | ||
where do2.organization_type = 'LG'; |