diff --git a/idm.sql b/idm.sql index 8211f10a43161f7abf1bce33be9b5c9848b11865..9bf97ee1f7e40b47aaea6bfb022bc136e2f4266e 100644 --- a/idm.sql +++ b/idm.sql @@ -1,3 +1,26 @@ +/* +Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre +Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + +This file is part of database. + +database 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. + +database 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 database. If not, see <https://www.gnu.org/licenses/>. +*/ + +-- depends: matrícula +-- SimCAQ: índice de distribuição de matrículas-- + CREATE TABLE indice_distribuicao_matriculas AS ( WITH div_estado AS (SELECT count(serie_ano_id) AS total_estado, serie_ano_id, estado_id