How to Create a DFF to get Unreleased amount of CPA on Requisition
Summary
I need a sql query to get the unreleased amount on Contract agreementContent
I need to create a DFF on Requisition that will show the amount left on that CPA.For that I need a sql query if somone can help me with that
Below are the relevant column and table name-
BLANKET_TOTAL_AMOUNT from PO_HEADERS_ALLBLANKET_TOTAL_AMOUNT from PO_HEADERS_ALL
AMOUNT_RELEASED from PO_HEADERS_ALL
How can I build a query to subtract these amounts?
I tried this but this is not correct-
select BLANKET_TOTAL_AMOUNT from PO_HEADERS_ALL
where Segment1 =1
0