From 6a8c74fbeaa0b5ab1c187ec395d2c1c62c660fdf Mon Sep 17 00:00:00 2001 From: "joel.clement" Date: Fri, 4 Mar 2022 08:34:25 +0100 Subject: [PATCH] bilan from attribution --- data/chasse/views_chasse.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/chasse/views_chasse.sql b/data/chasse/views_chasse.sql index 69ba0053..66a7fb6b 100644 --- a/data/chasse/views_chasse.sql +++ b/data/chasse/views_chasse.sql @@ -20,7 +20,7 @@ WITH pre_bilan AS ( join oeasc_chasse.t_saisons ts on ts.id_saison = ta.id_saison join oeasc_chasse.t_type_bracelets ttb on ttb.id_type_bracelet = ta.id_type_bracelet join oeasc_chasse.t_attribution_massifs tam on tam.id_saison = ta.id_saison and tam.id_espece = ttb.id_espece and tr.id_zone_cynegetique_realisee = tam.id_zone_cynegetique - join oeasc_chasse.t_zone_cynegetiques tzc on tzc.id_zone_cynegetique = tr.id_zone_cynegetique_realisee + left join oeasc_chasse.t_zone_cynegetiques tzc on tzc.id_zone_cynegetique = tr.id_zone_cynegetique_realisee GROUP BY ta.id_saison, ttb.id_espece,