0% found this document useful (0 votes)
60 views1 page

Est-Act To Level SQL

This document contains a SQL query that joins three tables: CML_TROP_CHARGE_ESTIMATES_V, CML_TROP_CHARGE_ACTUALS_V, and cml_trade_operations. It selects various columns including estimated and actual amounts from the tables where the trade operation IDs match to compare estimated and actual values.

Uploaded by

khaled_ghrbia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views1 page

Est-Act To Level SQL

This document contains a SQL query that joins three tables: CML_TROP_CHARGE_ESTIMATES_V, CML_TROP_CHARGE_ACTUALS_V, and cml_trade_operations. It selects various columns including estimated and actual amounts from the tables where the trade operation IDs match to compare estimated and actual values.

Uploaded by

khaled_ghrbia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

select cto.

name,
est.trade_operation_number,
est.trade_operation_charge_id,
est.charge_line_number,
est.charge_name,
est.party_name,
est.currency_code,
est.total_estimated_amount,
act.total_actual_amount
from CML_TROP_CHARGE_ESTIMATES_V est, CML_TROP_CHARGE_ACTUALS_V act,
cml_trade_operations cto
where est.trade_operation_id = act.trade_operation_id
and est.trade_operation_charge_id = act.trade_operation_charge_id
and est.trade_operation_id = cto.trade_operation_id

-- CML_TROP_CHARGES_V

You might also like