Skip to content

Commit

Permalink
chore: local_gov_vw
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Oct 28, 2024
1 parent edc1ceb commit a9e96b6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions database/ddl/STR_DSS_Views_Sprint_17.sql
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';

0 comments on commit a9e96b6

Please sign in to comment.