Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
open-source
OSE
Commits
b4c30519
Commit
b4c30519
authored
4 years ago
by
Antony Le Courtes
Browse files
Options
Downloads
Patches
Plain Diff
Refonte de l'indicateur 320 : Ne lister que les intervenants qui n'ont pas encore de contrat édité.
parent
33e86e3f
No related branches found
Tags
1.0.2
1 merge request
!55
Ll bug report services
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/ddl/view/V_INDICATEUR_320.sql
+16
-10
16 additions, 10 deletions
data/ddl/view/V_INDICATEUR_320.sql
with
16 additions
and
10 deletions
data/ddl/view/V_INDICATEUR_320.sql
+
16
−
10
View file @
b4c30519
...
...
@@ -9,11 +9,17 @@ SELECT DISTINCT
w
.
structure_id
FROM
tbl_workflow
w
LEFT
JOIN
tbl_contrat
c
ON
c
.
INTERVENANT_ID
=
w
.
intervenant_id
AND
w
.
structure_id
=
c
.
structure_id
JOIN
intervenant
i
ON
w
.
intervenant_id
=
i
.
id
JOIN
statut_intervenant
si
ON
si
.
id
=
i
.
statut_id
LEFT
JOIN
contrat
c
ON
c
.
intervenant_id
=
w
.
intervenant_id
WHERE
w
.
atteignable
=
1
AND
w
.
etape_code
=
'CONTRAT'
AND
w
.
objectif
>
0
AND
w
.
realisation
=
0
AND
NVL
(
c
.
EDITE
,
0
)
<>
1
AND
c
.
histo_destruction
IS
NULL
AND
i
.
histo_destruction
IS
NULL
AND
si
.
histo_destruction
IS
NULL
AND
c
.
id
IS
NULL
AND
si
.
peut_avoir_contrat
=
1
)
t
\ No newline at end of file
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