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
2d961d0d
Commit
2d961d0d
authored
5 years ago
by
Henrique Varella Ehrenfried
Browse files
Options
Downloads
Patches
Plain Diff
Add UF/Region to Admission
parent
09cbfac0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
admission.sql
+16
-8
16 additions, 8 deletions
admission.sql
with
16 additions
and
8 deletions
admission.sql
+
16
−
8
View file @
2d961d0d
...
...
@@ -27,17 +27,23 @@ SELECT
aluno_ens_superior
.
nome_curso
,
aluno_ens_superior
.
nome_ies
,
aluno_ens_superior
.
cod_ies
,
ies_ens_superior
.
nome_regiao_ies
,
ies_ens_superior
.
sigla_uf_ies
,
aluno_ens_superior
.
ano_censo
,
COUNT
(
*
)
AS
total
FROM
aluno_ens_superior
aluno_ens_superior
INNER
JOIN
ies_ens_superior
ON
(
aluno_ens_superior
.
cod_ies
=
ies_ens_superior
.
cod_ies
)
WHERE
(
reserva_vagas
=
1
)
AND
(
cod_categoria_administrativa
IN
(
1
))
AND
(
cod_organizacao_academica
IN
(
1
,
4
,
5
))
AND
(
ingressante
=
1
)
(
aluno_ens_superior
.
reserva_vagas
=
1
)
AND
(
aluno_ens_superior
.
cod_categoria_administrativa
IN
(
1
))
AND
(
aluno_ens_superior
.
cod_organizacao_academica
IN
(
1
,
4
,
5
))
AND
(
aluno_ens_superior
.
ingressante
=
1
)
AND
(
aluno_ens_superior
.
ano_censo
=
ies_ens_superior
.
ano_censo
)
GROUP
BY
aluno_ens_superior
.
turno_aluno
,
...
...
@@ -46,7 +52,8 @@ GROUP BY
aluno_ens_superior
.
nome_curso
,
aluno_ens_superior
.
nome_ies
,
aluno_ens_superior
.
cod_ies
,
ies_ens_superior
.
nome_regiao_ies
,
ies_ens_superior
.
sigla_uf_ies
,
aluno_ens_superior
.
ano_censo
ORDER
BY
...
...
@@ -56,5 +63,6 @@ ORDER BY
aluno_ens_superior
.
nome_curso
ASC
,
aluno_ens_superior
.
nome_ies
ASC
,
aluno_ens_superior
.
cod_ies
ASC
,
aluno_ens_superior
.
ano_censo
ASC
;
\ No newline at end of file
aluno_ens_superior
.
ano_censo
ASC
,
ies_ens_superior
.
nome_regiao_ies
ASC
,
ies_ens_superior
.
sigla_uf_ies
ASC
\ 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