-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vues decompte objets #187
Open
romain-jault
wants to merge
10
commits into
meldig:gestiongeo
Choose a base branch
from
romain-jault:VUES_DECOMPTE_OBJETS
base: gestiongeo
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Vues decompte objets #187
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9aebc2c
Ajout des éléments nécessaires à la gestion des URLs des dossiers
romain-jault aa80526
Revert "Ajout des éléments nécessaires à la gestion des URLs des doss…
romain-jault af261ff
Merge remote-tracking branch 'upstream/gestiongeo' into gestiongeo
romain-jault 9793c8e
Merge remote-tracking branch 'upstream/gestiongeo' into gestiongeo
romain-jault 23ac5d6
Merge remote-tracking branch 'upstream/gestiongeo' into gestiongeo
romain-jault 5a5d74f
Merge remote-tracking branch 'upstream/gestiongeo' into gestiongeo
romain-jault e12edef
Merge remote-tracking branch 'upstream/gestiongeo' into gestiongeo
romain-jault 37d79a9
Merge remote-tracking branch 'upstream/gestiongeo' into gestiongeo
romain-jault 03dd1cb
Créer deux vues décomptant les objets actifs par cla_inu de TA_POINT_…
romain-jault 6073138
Correction des commentaires des vues
romain-jault File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
schema/geogestion/vues/creation_v_decompte_entite_classe_ta_lig_topo_f.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
-- CREATION VUE GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F afin de comptabiliser les objets contenus dans la table TA_LIG_TOPO_F par classe d'objet (cla_inu) | ||
|
||
------------------------------- | ||
-- V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F-- | ||
------------------------------- | ||
|
||
|
||
-- Creation de la vue V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F afin de restituer les informations des dossiers | ||
|
||
-- 1. Creation de la vue. | ||
CREATE OR REPLACE FORCE VIEW GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F (OBJECTID, NOMBRE_OBJET, CLA_INU, CLA_CODE, CLA_LI, VALIDITE_CLASSE, | ||
CONSTRAINT "V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F_PK" PRIMARY KEY ("OBJECTID") DISABLE) | ||
AS | ||
WITH CTE AS | ||
( | ||
SELECT | ||
COUNT(a.OBJECTID) AS NOMBRE_OBJET, | ||
a.CLA_INU | ||
FROM | ||
GEO.TA_LIG_TOPO_F a | ||
WHERE | ||
a.GEO_ON_VALIDE = 0 | ||
GROUP BY | ||
a.CLA_INU | ||
) | ||
SELECT | ||
ROWNUM AS OBJECTID, | ||
CTE.NOMBRE_OBJET AS NOMBRE_OBJET, | ||
CTE.CLA_INU AS CLA_INU, | ||
b.CLA_CODE AS CLA_CODE, | ||
b.CLA_Li AS CLA_LI, | ||
b.CLA_VAL AS VALIDITE_CLASSE | ||
FROM | ||
CTE CTE INNER JOIN TA_CLASSE b on CTE.CLA_INU = b.CLA_INU | ||
; | ||
|
||
|
||
-- 2. Commentaire de la vue. | ||
COMMENT ON TABLE GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F IS 'Vue qui comptabilise les objets de la table GEO.TA_LIG_TOPO_F par classe d''objet.'; | ||
|
||
|
||
-- 3. Creation des commentaires des colonnes. | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F.OBJECTID IS 'Clé primaire de la table.'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F.NOMBRE_OBJET IS 'Nombre d''objet appartenant à la classe considérée'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F.CLA_INU IS 'Identifiant de la classe d''objet'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F.CLA_CODE IS 'Code de la classe d''objet'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F.CLA_LI IS 'Libelle de la classe'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_LIG_TOPO_F.VALIDITE_CLASSE IS 'Validite de la classe, 1: classe valide, 0 classe non valide'; | ||
|
||
|
||
/ |
51 changes: 51 additions & 0 deletions
51
schema/geogestion/vues/creation_v_decompte_entite_classe_ta_point_topo_f.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
-- CREATION VUE GEO afin de comptabiliser les objets contenus dans la table TA_POINT_TOPO_F: | ||
|
||
------------------------------- | ||
-- V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F-- | ||
------------------------------- | ||
|
||
|
||
-- Creation de la vue V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F afin de restituer les informations des dossiers | ||
|
||
-- 1. Creation de la vue. | ||
CREATE OR REPLACE FORCE VIEW GEO.V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F (OBJECTID, NOMBRE_OBJET, CLA_INU, CLA_CODE, CLA_LI, VALIDITE_CLASSE, | ||
CONSTRAINT "V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F_PK" PRIMARY KEY ("OBJECTID") DISABLE) | ||
AS | ||
WITH CTE AS | ||
( | ||
SELECT | ||
COUNT(a.OBJECTID) AS NOMBRE_OBJET, | ||
a.CLA_INU | ||
FROM | ||
GEO.TA_POINT_TOPO_F a | ||
WHERE | ||
a.GEO_ON_VALIDE = 0 | ||
GROUP BY | ||
a.CLA_INU | ||
) | ||
SELECT | ||
ROWNUM AS OBJECTID, | ||
CTE.NOMBRE_OBJET AS NOMBRE_OBJET, | ||
CTE.CLA_INU AS CLA_INU, | ||
b.CLA_CODE AS CLA_CODE, | ||
b.CLA_Li AS CLA_LI, | ||
b.CLA_VAL AS VALIDITE_CLASSE | ||
FROM | ||
CTE CTE INNER JOIN TA_CLASSE b on CTE.CLA_INU = b.CLA_INU | ||
; | ||
|
||
|
||
-- 2. Commentaire de la vue. | ||
COMMENT ON TABLE GEO.V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F IS 'Vue qui comptabilise les objets de la table GEO.TA_POINT_TOPO_F par classe d''objet.'; | ||
|
||
|
||
-- 3. Creation des commentaires des colonnes. | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F.OBJECTID IS 'Clé primaire de la table.'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F.NOMBRE_OBJET IS 'Nombre d''objet appartenant à la classe considérée'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F.CLA_INU IS 'Identifiant de la classe d''objet'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F.CLA_CODE IS 'Code de la classe d''objet'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F.CLA_LI IS 'Libelle de la classe'; | ||
COMMENT ON COLUMN GEO.V_DECOMPTE_ENTITE_CLASSE_TA_POINT_TOPO_F.VALIDITE_CLASSE IS 'Validite de la classe, 1: classe valide, 0 classe non valide'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. précise qu'il s'agit des entités valides uniquement. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. C'est corrigé |
||
|
||
|
||
/ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
précise qu'il s'agit des entités valides uniquement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est corrigé