pour déploiement auto v2 via gitlab
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.
 
 

6 lines
224 B

src: |
SELECT t_ghm.oid,
t_ghm_v.oid AS to_id
FROM pmsi.t_ghm,
pmsi.t_ghm t_ghm_v
WHERE substr(t_ghm.code::text, 6, 1) = 'W'::text AND substr(t_ghm.code::text, 1, 5) = substr(t_ghm_v.code::text, 1, 5);