I would like to select, not just the ‘CYCL_FOLD.CF_FATHER_ID’ id, but its name.
SELECT
RUN.RN_RUN_ID,
RUN.RN_EXECUTION_DATE,
RUN.RN_EXECUTION_TIME,
RUN.RN_PC_VUSERS_INVOLVED,
RUN.RN_DURATION,
–RUN.RN_CYCLE_ID,
CYCLE.CY_FOLDER_ID,
CYCLE.CY_CYCLE,
CYCL_FOLD.CF_ITEM_NAME, –the folders name
CYCL_FOLD.CF_FATHER_ID –line above’s father folder id
–I ALSO WANT THE FATHER FOLDER’S NAME–
–CYCL_FOLD_TMP.CF_ITEM_NAME
FROM
RUN
INNER JOIN CYCLE ON RUN.RN_CYCLE_ID = CYCLE.CY_CYCLE_ID
INNER JOIN CYCL_FOLD ON CYCLE.CY_FOLDER_ID = CYCL_FOLD.CF_ITEM_ID
–INNER JOIN CYCL_FOLD_TMP ON CYCL_FOLD.CF_FATHER_ID = CYCL_FOLD_TMP.CF_ITEM_ID
ORDER BY
RUN.RN_RUN_ID ASC
I am having a real tough time explaining this in words. I want to use the third inner join to get the following:
SELECT CF_ITEM_NAME
FROM CYCL_FOLD
WHERE CF_ITEM_NAME=CF_FATHER_ID;
Any help would be greatly appreciated.