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
8790cda6
Commit
8790cda6
authored
2 years ago
by
Pietro Cavassin
Browse files
Options
Downloads
Patches
Plain Diff
adiciona filtros na criação da tabela de localoferta_ens_superior_matricula
parent
e2997755
No related branches found
No related tags found
1 merge request
!28
adiciona filtros na criação da tabela de localoferta_ens_superior_matricula
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
localoferta_ens_superior_matricula.sql
+6
-2
6 additions, 2 deletions
localoferta_ens_superior_matricula.sql
with
6 additions
and
2 deletions
localoferta_ens_superior_matricula.sql
+
6
−
2
View file @
8790cda6
...
...
@@ -47,7 +47,9 @@ WITH
INNER
JOIN
localoferta_ens_superior
ON
(
aluno_ens_superior
.
ano_censo
=
localoferta_ens_superior
.
ano_censo
AND
aluno_ens_superior
.
cod_curso
=
localoferta_ens_superior
.
cod_curso
)
WHERE
(
localoferta_ens_superior
.
cod_curso_polo
IS
NULL
)
(
localoferta_ens_superior
.
cod_curso_polo
IS
NULL
)
AND
(
aluno_ens_superior
.
cod_nivel_academico
=
1
)
AND
(
aluno_ens_superior
.
cod_grau_academico
=
2
OR
aluno_ens_superior
.
cod_grau_academico
=
4
)
),
COD_CURSO_POLO
AS
(
SELECT
aluno_ens_superior
.
cod_aluno
AS
"cod_aluno"
,
...
...
@@ -95,7 +97,9 @@ WITH
INNER
JOIN
localoferta_ens_superior
ON
(
aluno_ens_superior
.
ano_censo
=
localoferta_ens_superior
.
ano_censo
AND
aluno_ens_superior
.
cod_curso_polo
=
localoferta_ens_superior
.
cod_curso_polo
)
WHERE
(
localoferta_ens_superior
.
cod_curso_polo
>
0
)
(
localoferta_ens_superior
.
cod_curso_polo
>
0
)
AND
(
aluno_ens_superior
.
cod_nivel_academico
=
1
)
AND
(
aluno_ens_superior
.
cod_grau_academico
=
2
OR
aluno_ens_superior
.
cod_grau_academico
=
4
)
)
SELECT
*
FROM
COD_CURSO
...
...
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