You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
933 B

src: |
SELECT 0 AS indicateur_id,
''::text AS indicateur_code,
date_part('month'::text, p_calendrier_mois.date_debut) AS mois,
p_calendrier_mois.date_debut AS date_reference,
CASE date_part('month'::text, p_calendrier_mois.date_debut)
WHEN 1 THEN 'Jan'::text
WHEN 2 THEN 'Fev'::text
WHEN 3 THEN 'Mars'::text
WHEN 4 THEN 'Avr'::text
WHEN 5 THEN 'Mai'::text
WHEN 6 THEN 'Juin'::text
WHEN 7 THEN 'Juil'::text
WHEN 8 THEN 'Aout'::text
WHEN 9 THEN 'Sep'::text
WHEN 10 THEN 'Oct'::text
WHEN 11 THEN 'Nov'::text
WHEN 12 THEN 'Dec'::text
ELSE date_part('month'::text, p_calendrier_mois.date_debut)::text
END AS mois_texte,
0 AS value,
0 AS value_cum,
0 AS value_cum12
FROM base.p_calendrier_mois;