Avez vous une idee de comment on pourrait porter ce code Oracle en PostgreSQL ?
SELECT DISTINCT CALCUL_ID
FROM DIAGNOSTIC
WHERE CALCUL_ID IS NOT NULL
CONNECT BY PRIOR DIAG_ID_0 = DIAG_ID OR
PRIOR DIAG_ID_1 = DIAG_ID
START WITH DIAG_ID IN (SELECT DIAG_ID_1
FROM PROCESSING
WHERE ST_ID = 2 AND
SY_ID = 1 AND
EQ_ID = 3) OR
DIAG_ID IN (SELECT DIAG_ID_0
FROM PROCESSING
WHERE ST_ID = 2 AND
SY_ID = 1 AND
EQ_ID = 3) )
Malheureusement la documentation sur connectby propose par PostgreSQL semble tres pauvre, notamment en exemples...
Merci d' avance
Partager