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
慕的地10843
浏览 538回答 1
1回答
缥缈止盈
select a.directflag,(select sheettypename fromsheettype where id=(select sheettypeid from moduletype where moduleid=trim(a.sheetidruleid)))其中,(select sheettypename fromsheettype where id=(select sheettypeid from moduletype where moduleid=trim(a.sheetidruleid部分也必须返回一个值,否则没有办法和a.directflag构成一个元组!