|
请问,下面的代码,是哪种语言的代码啊? 弱弱的问题,不求懂意思
SELECT a."Acct Brch No" as "Branch Code",
a."Acct Prod Type" as "Product Code",
a."Currency" as "Currency",
substr(a."Acct No",7,3) || '-' || substr(a."Acct No",10,6) || '-' || substr(a."Acct No",16,3) as "Loan Account Number",
(a."Repay Tfr Acct Brch No") || '-' || (a."Repay Tfr Acct Serial No") || '-' || (a."Repay Tfr Acct Suffix") as "Repayment Account Number",
a."Acct Short Name" as "Customer Name",
a."2nd Language Acc Short Name" as "Short Name",
a."Nationality Code" as "Nationality",
a."Date Acct Opened" as "Date Account Opened",
a."Commitment Date" as "Loan Commitment Date",
a."Original Loan Amount LCY" as "Loan amount",
b."Instl Frequency" as "Instl Cycle",
b."Next Installment Date" as "Next Installment Date",
c."Instl Due Date" as "Instl Due Date",
c."Instl Amount RCY" as "Install Amount RCY",
c."Principal Portion RCY" as "Principal Portion",
c."Int Portion RCY" as "Interest Portion",
c."Payment Date" as "Payment Date",
a."OS Principal RCY" as "Loan Outstanding Balance RCY",
trim(to_char(a."OS Principal LCY",999999999999999999999.99)) as "Loan Outstanding Balance LCY",
a."Due Date" as "Due Date",
(round((a."Int Accru on Instl Overdue RCY"),2)-(a."Int clltd on instl overdue RCY"))+round((a."Int Accru on Int Overdue RCY"),2)-(a."Int clltd on Int overdue RCY") as "Overdue interest",
a."DR Int Contract Rate" as "Interest Rate",
a."DR Int Rate Type" as "DR Interest Rate Type",
a."DR Int Rate Spread" as "Rate Spread",
a."Overdue Int Rate Spread" as "Interest Rate Spread",
a."Overdue instalment rate spread" as "Installment Rate Spread",
a."Int Calculation Preference",
a."Credit Grade" as "HSBC Credit Grade",
a."Ver Date"
FROM prodmaph.view_maprh_d_cn_tc_mstr a,
prodmaph.view_maprh_d_cn_tc_insl_sgmt b,
prodmaph.view_maprh_d_CN_tc_repmtschd c
WHERE a."Ver Date"=b."Ver Date"
AND a."Ver Date"=c."Ver Date"
AND a."Acct No"=b."Acct No"
AND a."Acct No"=c."Acct No"
AND a."Acct Prod Type" in ('SLL','HML','PLL','HMM')
AND to_char(a."Ver Date",'yyyymmdd')='20120314'
AND a."OS Principal LCY"<>'0'
AND to_char(c."Instl Due Date",'yyyymmdd')=to_char(b."Next Installment Date",'yyyymmdd')
|
|