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
Merge requests
!26
Dim school
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Dim school
dim_school
into
development
Overview
0
Commits
4
Pipelines
0
Changes
1
Merged
Pietro Cavassin
requested to merge
dim_school
into
development
2 years ago
Overview
0
Commits
4
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
92a93902
Prev
Next
Show latest version
1 file
+
41
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
92a93902
create curso_ens_superior_count.sql
· 92a93902
Pietro Cavassin
authored
3 years ago
curso_ens_superior_count.sql
0 → 100644
+
41
−
0
Options
/*
Copyright (C) 2021 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of HOTMapper.
HOTMapper is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License AS published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
HOTMapper is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with HOTMapper. If not, see <https://www.gnu.org/licenses/>.
*/
-- depends: curso_ens_superior, localoferta_ens_superior
CREATE
TABLE
curso_ens_superior_count
AS
SELECT
DISTINCT
(
localoferta_ens_superior
.
cod_curso
)
AS
"cod_curso"
,
localoferta_ens_superior
.
cod_municipio
AS
"cod_municipio"
,
curso_ens_superior
.
ano_censo
AS
"ano_censo"
,
curso_ens_superior
.
nome_curso
AS
"nome_curso"
,
curso_ens_superior
.
cod_grau_academico
AS
"cod_grau_academico"
FROM
curso_ens_superior
INNER
JOIN
localoferta_ens_superior
ON
(
curso_ens_superior
.
ano_censo
=
localoferta_ens_superior
.
ano_censo
AND
curso_ens_superior
.
cod_curso
=
localoferta_ens_superior
.
cod_curso
)
GROUP
BY
localoferta_ens_superior
.
cod_curso
,
localoferta_ens_superior
.
cod_municipio
,
curso_ens_superior
.
ano_censo
,
curso_ens_superior
.
nome_curso
,
curso_ens_superior
.
cod_grau_academico
;
Loading