Commit 9def4210 authored by Stéphane Crozat's avatar Stéphane Crozat
Browse files

Change indicateur exclu calculation

parent 3efe6b9b
...@@ -51,7 +51,8 @@ BEGIN ...@@ -51,7 +51,8 @@ BEGIN
ELSIF nb_sub = 1 THEN ELSIF nb_sub = 1 THEN
RETURN 100; RETURN 100;
ELSE ELSE
RETURN ROUND(100 * (1 - (nb_sub / nb_api))); RETURN ROUND(100 / nb_sub);
/** Old formula RETURN ROUND(100 * (1 - (nb_sub / nb_api))); **/
END IF; END IF;
END; END;
$$ LANGUAGE PLPGSQL; $$ LANGUAGE PLPGSQL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment