Skip to content

Commit

Permalink
add dml sql query example
Browse files Browse the repository at this point in the history
  • Loading branch information
lani009 committed Jun 2, 2021
1 parent c82510b commit 116997b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SQL 사용.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
select DD.dept_div_nm, GD.govofc_div_nm, HD.hgdept_div_nm, D.dept_nm
from "OrganizationChart"
join "DeptDiv" DD on DD.dept_div_cd = "OrganizationChart".dept_div_cd
join "GovofcDiv" GD on GD.govofc_div_cd = "OrganizationChart".govofc_div_cd
join "HgdeptDiv" HD on HD.hgdept_div_cd = "OrganizationChart".hgdept_div_cd
join "Dept" D on D.dept_cd_nm = "OrganizationChart".dept_cd_nm
where dept_div_nm like '사업소'
and govofc_div_nm like '수자원본부'
and hgdept_div_nm like '%'
and dept_nm like '%'

0 comments on commit 116997b

Please sign in to comment.