Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
6ac72c88
Commit
6ac72c88
authored
May 25, 2021
by
Antony Le Courtes
Browse files
Options
Downloads
Patches
Plain Diff
Ajout du INSEE et INSEE PROVISOIRE dans MV_INTERVENANT.sql Octopus.
parent
36dccf5d
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
doc/Connecteurs-Import/Octopus/MV_INTERVENANT.sql
+7
-2
7 additions, 2 deletions
doc/Connecteurs-Import/Octopus/MV_INTERVENANT.sql
with
7 additions
and
2 deletions
doc/Connecteurs-Import/Octopus/MV_INTERVENANT.sql
+
7
−
2
View file @
6ac72c88
...
...
@@ -172,8 +172,12 @@ SELECT DISTINCT
adr
.
ville_nom
adresse_commune
,
pays
.
code_pays
z_adresse_pays_id
,
/* INSEE */
CAST
(
NULL
AS
varchar2
(
255
))
numero_insee
,
CAST
(
NULL
AS
numeric
(
1
))
numero_insee_provisoire
,
COALESCE
(
vindinsee
.
no_insee
,
vindinsee
.
no_insee_provisoire
)
numero_insee
,
CASE
WHEN
vindinsee
.
no_insee
IS
NULL
AND
vindinsee
.
no_insee_provisoire
IS
NOT
NULL
THEN
1
ELSE
0
END
numero_insee_provisoire
,
/* Banque */
CAST
(
NULL
AS
varchar2
(
255
))
iban
,
CAST
(
NULL
AS
varchar2
(
255
))
bic
,
...
...
@@ -200,6 +204,7 @@ FROM i
JOIN
induni
ON
i
.
code
=
induni
.
c_individu_chaine
--AND induni.c_source IN ('HARP', 'OCTO', 'SIHAM'))
LEFT
JOIN
octo
.
individu
@
octoprod
ind
ON
ind
.
c_individu_chaine
=
induni
.
c_individu_chaine
LEFT
JOIN
octo
.
v_individu_insee
@
octoprod
vindinsee
ON
ind
.
c_individu_chaine
=
vindinsee
.
individu_id
LEFT
JOIN
octo
.
v_individu
@
octoprod
vind
ON
vind
.
c_individu_chaine
=
induni
.
c_individu_chaine
--On récupére la structure principale de l'individu
LEFT
JOIN
structure_aff_enseigne
sae
ON
sae
.
individu_id
=
induni
.
c_individu_chaine
...
...
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