src: |
  SELECT 'DT'::text || p_salaries.oid::text AS oid,
      (((p_salaries.matricule || ' '::text) || p_salaries.nom::text) || ' '::text) || p_salaries.prenom::text AS texte,
      p_salaries.matricule,
      '1'::text AS level,
      '9'::text || p_salaries.matricule AS tri
     FROM rh.p_contrats
       JOIN rh.p_salaries ON p_salaries.oid = p_contrats.salarie_remplace_id
    GROUP BY ('9'::text || p_salaries.matricule), ('DT'::text || p_salaries.oid::text), ((((p_salaries.matricule || ' '::text) || p_salaries.nom::text) || ' '::text) || p_salaries.prenom::text), p_salaries.matricule, '1'::text
    ORDER BY ('9'::text || p_salaries.matricule);