This document defines a PL/SQL function called GET_applied_Amount that takes an invoice amount as a parameter and returns that amount multiplied by 500. It then uses that function in a SQL query by calling the function on the invoice_amount column in the Ap_invoices_all table, storing the results in a CTE called data_inv, and selecting the invoice number and new invoice amount from data_inv.
This document defines a PL/SQL function called GET_applied_Amount that takes an invoice amount as a parameter and returns that amount multiplied by 500. It then uses that function in a SQL query by calling the function on the invoice_amount column in the Ap_invoices_all table, storing the results in a CTE called data_inv, and selecting the invoice number and new invoice amount from data_inv.
This document defines a PL/SQL function called GET_applied_Amount that takes an invoice amount as a parameter and returns that amount multiplied by 500. It then uses that function in a SQL query by calling the function on the invoice_amount column in the Ap_invoices_all table, storing the results in a CTE called data_inv, and selecting the invoice number and new invoice amount from data_inv.