宇宙无敌大帅哥(提问者) 回复 CD20160914图已更新,sql是:SELECT SUM(gb.period_net_dr_beq - gb.period_net_cr_beq) amount
FROM gl_code_combinations gcc,
gl_balances gb,
FND_FLEX_VALUES_VL ffv
WHERE gb.code_combination_id = gcc.code_combination_id
and ffv.FLEX_VALUE_SET_ID=1017029
and ffv.FLEX_VALUE=gcc.SEGMENT3
and gcc.SUMMARY_FLAG<>\'Y\'
AND gb.ledger_id = 2022
/*
AND gb.period_name >= \'\'
AND gb.period_name <= \'\' */
and gcc.segment1=\'11\'
and gb.period_name=\'2022-05\'
and instr(ffv.DESCRIPTION,\'销售费用\')>0
and instr(ffv.DESCRIPTION,\'差旅费\')>0
这样的,但是只执行了一次,就只取到了B1的参数,但是B1的参数在数据集里是没有数据的所以为空。请问大佬如果想每个单元格都执行一次数据查询去去取数的话怎么处理呢?