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
00dff5dd
Commit
00dff5dd
authored
Apr 29, 2022
by
Antony Le Courtes
Browse files
Options
Downloads
Patches
Plain Diff
correction affectation recherche venant d'octopus
parent
d3a73ff6
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/SRC_AFFECTATION_RECHERCHE.sql
+9
-5
9 additions, 5 deletions
doc/Connecteurs-Import/Octopus/SRC_AFFECTATION_RECHERCHE.sql
with
9 additions
and
5 deletions
doc/Connecteurs-Import/Octopus/SRC_AFFECTATION_RECHERCHE.sql
+
9
−
5
View file @
00dff5dd
...
...
@@ -4,8 +4,9 @@ WITH affectation_recherche AS (
SELECT
indaff
.
individu_id
z_code
,
s
.
id
z_structure_recherche_id
,
indaff
.
id
source_code
from
indaff
.
id
source_code
,
s
.
code
code
FROM
octo
.
individu_affectation
@
octoprod
indaff
JOIN
octo
.
v_structure
@
octoprod
s
ON
s
.
id
=
indaff
.
structure_id
WHERE
...
...
@@ -20,5 +21,8 @@ SELECT DISTINCT i.id intervenant_id,
s
.
libelle_court
labo_libelle
FROM
affectation_recherche
affrech
JOIN
source
src
ON
src
.
code
=
'Octopus'
JOIN
intervenant
i
ON
i
.
code
=
CAST
(
affrech
.
z_code
AS
varchar
(
255
))
AND
i
.
annee_id
=
unicaen_import
.
get_current_annee
JOIN
octo
.
v_structure
@
octoprod
s
ON
affrech
.
z_structure_recherche_id
=
s
.
id
\ No newline at end of file
JOIN
intervenant
i
ON
i
.
code
=
CAST
(
affrech
.
z_code
AS
varchar
(
255
))
AND
i
.
annee_id
=
unicaen_import
.
get_current_annee
JOIN
structure
s
ON
s
.
code
=
affrech
.
code
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