SELECT distinct ID_NO,SHOULD_PAY,FAVOUR_FEE,(SELECT nvl(SHOULD_PAY,0)-nvl(FAVOUR_FEE,0) AS fee1 FROM ODS_ACT_PAYEDOWE) from ODS_ACT_PAYEDOWE WHERE RECORD_TIME=(select max(RECORD_TIME) FROM ODS_ACT_PAYEDOWE) and rownum=1
1 回答
缥缈止盈
TA贡献2041条经验 获得超4个赞
select a.directflag,(select sheettypename from
sheettype where id=(select sheettypeid from moduletype where moduleid=trim(a.sheetidruleid)))
其中
,(select sheettypename from
sheettype where id=(select sheettypeid from moduletype where moduleid=trim(a.sheetidruleid
部分也必须返回一个值,否则没有办法和a.directflag构成一个元组!
添加回答
举报
0/150
提交
取消