Hi All,
I am very new to PL/SQL. I am attempting to write my first procedure/function. I want to create a procedure I can call sending the results to a 3rd party application. Am I on the right track? Below is what I have sofar. Any help/suggestions would be most appreciated.
FUNCTION summaryHistory
/*
|| Author:
||
|| Overview:
||
|| Major Modifications:
||
*/
BEGIN
Select Distinct
summary.asOfDate,
summary.acctNum,
summary.itemCount,
summary.currencyCode,
summary.amount,
codes.baiType,
codes.baiDesc,
bank.abaNum
From bank bank,
pdr_acct_summary summary,
bai_type_code codes
Where codes.baiType = summary.baiType
And bank.abaNum = summary.abaNum
And to_char(summary.asofdate, 'mm/dd/yy') = '12/19/01'
Order By summary.acctNum, summary.asofdate, codes.baiDesc
END summaryHistory;
I am very new to PL/SQL. I am attempting to write my first procedure/function. I want to create a procedure I can call sending the results to a 3rd party application. Am I on the right track? Below is what I have sofar. Any help/suggestions would be most appreciated.
FUNCTION summaryHistory
/*
|| Author:
||
|| Overview:
||
|| Major Modifications:
||
*/
BEGIN
Select Distinct
summary.asOfDate,
summary.acctNum,
summary.itemCount,
summary.currencyCode,
summary.amount,
codes.baiType,
codes.baiDesc,
bank.abaNum
From bank bank,
pdr_acct_summary summary,
bai_type_code codes
Where codes.baiType = summary.baiType
And bank.abaNum = summary.abaNum
And to_char(summary.asofdate, 'mm/dd/yy') = '12/19/01'
Order By summary.acctNum, summary.asofdate, codes.baiDesc
END summaryHistory;