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
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
4bc1ebc9
Commit
4bc1ebc9
authored
2 years ago
by
Fernando Gbur dos Santos
Browse files
Options
Downloads
Patches
Plain Diff
docente_por_formacao table tests
parent
3551bd79
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docente_por_formacao.sql
+3
-3
3 additions, 3 deletions
docente_por_formacao.sql
with
3 additions
and
3 deletions
docente_por_formacao.sql
+
3
−
3
View file @
4bc1ebc9
...
...
@@ -35,11 +35,11 @@ WITH
WHERE
(
docente
.
tipo_docente
=
1
OR
docente
.
tipo_docente
=
5
)
AND
((
docente
.
tipo_turma_id
<=
3
AND
docente
.
tipo_turma_atendimento_id
IS
NULL
)
OR
(
docente
.
tipo_turma_atendimento_id
<=
2
AND
docente
.
tipo_turma_id
IS
NULL
))
AND
(
docente
.
ano_censo
>=
2018
)
AND
(
docente
.
nivel_tipo_formacao
IN
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
))
AND
(
docente
.
ano_censo
>=
2018
)
AND
(
docente
.
nivel_tipo_formacao
IN
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
)
AND
docente
.
escola_id
=
14008106
)
GROUP
BY
docente
.
ano_censo
,
estado
.
nome
,
estado
.
id
,
municipio
.
nome
,
municipio
.
id
,
docente
.
dependencia_adm_id
,
docente
.
id_docente
,
docente
.
escola_id
ORDER
BY
docente
.
ano_censo
ASC
,
estado
.
nome
ASC
,
estado
.
id
ASC
,
municipio
.
nome
ASC
,
municipio
.
id
ASC
,
docente
.
escola_id
ASC
),
)
/*
,
docente_medio AS
(SELECT docente.id_docente AS "id_docente", docente.ano_censo AS ano_censo, estado.id AS estado_id,
municipio.id AS municipio_id, docente.dependencia_adm_id AS dependencia_adm_id, 2 AS tipo_formacao,
...
...
@@ -126,5 +126,5 @@ UNION ALL (SELECT * FROM docente_medio)
UNION ALL (SELECT * FROM docente_superior)
UNION ALL (SELECT * FROM docente_especializacao)
UNION ALL (SELECT * FROM docente_mestrado)
UNION
ALL
(
SELECT
*
FROM
docente_doutorado
)
UNION ALL (SELECT * FROM docente_doutorado)
*/
);
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