Query to find the Sum of all associated requisition lines associated with a Requisition
Please let me know how to write the query to find the following details from PO_REQUISITON_HEADERS_ALL table and PO_REQUISITON_LINES_ALL table.
I need to find the all requisiton lines and associated requisiton number where the sum of requisiton lines is less than 10k.
Eg: If therer is reauisiton with 3 lines each line with amount 1000,2000,300o. The amount adds up to 6k whihc is less than 10k.
How we can write the query to get this details.
Regards,
Raj