Hello Dash420,
there is no common key, and I have to go thru the parsing of PISTE_ISO ONLY to get the info.
I was wrong in the question, my table TITLE_RANGE has 419 rows (and not 40). Still does not change the question..
I was trying to do correlated subqueries but I'm not really use to ...
Benouche
Main Topics
Browse All Topics





by: dash420Posted on 2002-11-26 at 05:37:28ID: 7498728
is there any column common between CT_PAIEMENT_INDIVIDUAL
NDIVIDUAL. CT_PISTE_I SO2,2,17), 19,'0')
NDIVIDUAL. CT_PISTE_I SO2,2,17), 19,'0')
and TITLE_RANGES. so that instead of using the subquery you can do it in making join.
also
(SELECT *
FROM TITLE_RANGES
WHERE TITLE_RANGES.MNEMONIQUE = 'CB'
AND (lpad(substr(CT_PAIEMENT_I
BETWEEN TITLE_RANGES.BEGIN_RANGE AND TITLE_RANGES.END_RANGE)
you are selecting all the column from TITLE_RANGES. instead f that u just pick key item of TITLE_RANGES
(SELECT <key_column>
FROM TITLE_RANGES
WHERE TITLE_RANGES.MNEMONIQUE = 'CB'
AND (lpad(substr(CT_PAIEMENT_I
BETWEEN TITLE_RANGES.BEGIN_RANGE AND TITLE_RANGES.END_RANGE)
it will reduce query time some extents.