Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SQL Scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HOTMapper
SQL Scripts
Commits
4175a7fe
Commit
4175a7fe
authored
5 years ago
by
ns17
Browse files
Options
Downloads
Patches
Plain Diff
Add region in institution
parent
c4adf529
No related branches found
No related tags found
2 merge requests
!6
Add region in institution
,
!4
Add region in institution
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
institution.sql
+6
-3
6 additions, 3 deletions
institution.sql
with
6 additions
and
3 deletions
institution.sql
+
6
−
3
View file @
4175a7fe
...
@@ -24,7 +24,8 @@ SELECT
...
@@ -24,7 +24,8 @@ SELECT
inst
.
ano_censo
,
inst
.
ano_censo
,
nome_ies
,
nome_ies
,
cod_ies
,
cod_ies
,
sigla_uf_ies
sigla_uf_ies
,
CASE
WHEN
(
"cod_uf_ies"
=
11
OR
"cod_uf_ies"
=
12
OR
"cod_uf_ies"
=
13
OR
"cod_uf_ies"
=
14
OR
"cod_uf_ies"
=
15
OR
"cod_uf_ies"
=
16
OR
"cod_uf_ies"
=
17
)
THEN
'Norte'
WHEN
(
"cod_uf_ies"
=
21
OR
"cod_uf_ies"
=
22
OR
"cod_uf_ies"
=
23
OR
"cod_uf_ies"
=
24
OR
"cod_uf_ies"
=
25
OR
"cod_uf_ies"
=
26
OR
"cod_uf_ies"
=
27
OR
"cod_uf_ies"
=
28
OR
"cod_uf_ies"
=
29
)
THEN
'Nordeste'
WHEN
(
"cod_uf_ies"
=
31
OR
"cod_uf_ies"
=
32
OR
"cod_uf_ies"
=
33
OR
"cod_uf_ies"
=
35
)
THEN
'Sudeste'
WHEN
(
"cod_uf_ies"
=
41
OR
"cod_uf_ies"
=
42
OR
"cod_uf_ies"
=
43
)
THEN
'Sul'
WHEN
(
"cod_uf_ies"
=
50
OR
"cod_uf_ies"
=
51
OR
"cod_uf_ies"
=
52
OR
"cod_uf_ies"
=
53
)
THEN
'Centro-Oeste'
ELSE
null
END
AS
region
FROM
FROM
ies_ens_superior
as
inst
ies_ens_superior
as
inst
...
@@ -43,10 +44,12 @@ GROUP BY
...
@@ -43,10 +44,12 @@ GROUP BY
inst
.
ano_censo
,
inst
.
ano_censo
,
nome_ies
,
nome_ies
,
cod_ies
,
cod_ies
,
sigla_uf_ies
sigla_uf_ies
,
region
ORDER
BY
ORDER
BY
inst
.
ano_censo
ASC
,
inst
.
ano_censo
ASC
,
nome_ies
ASC
,
nome_ies
ASC
,
sigla_uf_ies
sigla_uf_ies
,
region
;
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment