select
from ar.RA_CUSTOMER_TRX_ALL rct,
ar.RA_CUSTOMER_TRX_LINES_ALL rctl,
ar.RA_CUST_TRX_LINE_GL_DIST_ALL rctgl,
apps.GL_CODE_COMBINATIONS gcc -- 账户组合
where rct.CUSTOMER_TRX_ID=rctl.CUSTOMER_TRX_ID
and rctl.CUSTOMER_TRX_LINE_ID=rctgl.CUSTOMER_TRX_LINE_ID
and rctgl.CODE_COMBINATION_ID=gcc.CODE_COMBINATION_ID