I have data item Dealer Code
in the report which I fetching from D_DEALER
Table. But here when I perform generate sql it gives the below query.
"select distinct
"D_DEALER"."I_CURR" "Dealer_Code"
from
"DEALER"."D_DEALER" "D_DEALER" ,
"SRVCTRCT"."PGM_OPTIONS" "PGM_OPTIONS" ,
"SRVCTRCT"."OPTION_INDEX" "OPTION_INDEX",
"SRVCTRCT"."L_DLR_PROFL" "D_SC_DLR_PROFILE"
where
"D_DEALER"."L_DLR_CURR_REC" = 'Y'
and "PGM_OPTIONS"."C_PGM_ATTR" NOT in ('U')
and "D_SC_DLR_PROFILE"."I_DLR_DIM" = "D_DEALER"."I_DLR_DIM"
and "OPTION_INDEX"."C_OPT_KEY" = "D_SC_DLR_PROFILE"."C_KEY_OPT"
and "OPTION_INDEX"."I_SC_OPT_SAN" = "PGM_OPTIONS"."I_SC_OPT_SAN" FOR FETCH ONLY"
There are certains level of joins applied in Cognos FM. But ideally it should fetch record from only one table (D_DEALER
) – why are other tables (PGM_OPTIONS
, OPTION_INDEX
, D_SC_DLR_PROFILE
) coming into the picture?