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
be78deab
Commit
be78deab
authored
Aug 30, 2021
by
Laurent Lecluse
Browse files
Options
Downloads
Patches
Plain Diff
On évite de générer des divisions par zéro si un seuil de dédoublement est forcé à 0
parent
bbc0c436
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/ddl/package/UNICAEN_TBL/body.sql
+3
-3
3 additions, 3 deletions
data/ddl/package/UNICAEN_TBL/body.sql
data/ddl/view/V_TBL_CHARGENS.sql
+3
-3
3 additions, 3 deletions
data/ddl/view/V_TBL_CHARGENS.sql
with
6 additions
and
6 deletions
data/ddl/package/UNICAEN_TBL/body.sql
+
3
−
3
View file @
be78deab
...
...
@@ -378,15 +378,15 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
heures_ens,
--t_effectif,t_dedoublement,
CASE WHEN t_effectif < ouverture THEN 0 ELSE
CASE WHEN t_effectif < ouverture
OR dedoublement = 0 OR t_effectif = 0
THEN 0 ELSE
(CEIL(t_effectif / dedoublement) * effectif) / t_effectif
END groupes,
CASE WHEN t_effectif < ouverture THEN 0 ELSE
CASE WHEN t_effectif < ouverture
OR dedoublement = 0 OR t_effectif = 0
THEN 0 ELSE
((CEIL(t_effectif / dedoublement) * effectif) / t_effectif) * heures_ens
END heures,
CASE WHEN t_effectif < ouverture THEN 0 ELSE
CASE WHEN t_effectif < ouverture
OR dedoublement = 0 OR t_effectif = 0
THEN 0 ELSE
((CEIL(t_effectif / dedoublement) * effectif) / t_effectif) * hetd
END hetd
...
...
This diff is collapsed.
Click to expand it.
data/ddl/view/V_TBL_CHARGENS.sql
+
3
−
3
View file @
be78deab
...
...
@@ -19,15 +19,15 @@ SELECT
heures_ens
,
--t_effectif,t_dedoublement,
CASE
WHEN
t_effectif
<
ouverture
THEN
0
ELSE
CASE
WHEN
t_effectif
<
ouverture
OR
dedoublement
=
0
OR
t_effectif
=
0
THEN
0
ELSE
(
CEIL
(
t_effectif
/
dedoublement
)
*
effectif
)
/
t_effectif
END
groupes
,
CASE
WHEN
t_effectif
<
ouverture
THEN
0
ELSE
CASE
WHEN
t_effectif
<
ouverture
OR
dedoublement
=
0
OR
t_effectif
=
0
THEN
0
ELSE
((
CEIL
(
t_effectif
/
dedoublement
)
*
effectif
)
/
t_effectif
)
*
heures_ens
END
heures
,
CASE
WHEN
t_effectif
<
ouverture
THEN
0
ELSE
CASE
WHEN
t_effectif
<
ouverture
OR
dedoublement
=
0
OR
t_effectif
=
0
THEN
0
ELSE
((
CEIL
(
t_effectif
/
dedoublement
)
*
effectif
)
/
t_effectif
)
*
hetd
END
hetd
...
...
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