Dump - ITSA views
This commit is contained in:
@@ -5,7 +5,9 @@ CREATE OR REPLACE VIEW public.vw_bi_dim_conformed_reference AS
|
||||
pc."Price Fixing Status",
|
||||
pc."Bassin",
|
||||
pc."Book",
|
||||
pc."Supplier Country" AS "Counterparty Country"
|
||||
pc."Supplier Country" AS "Counterparty Country",
|
||||
pc."MtM Strategy",
|
||||
pc."MtM Strategy Aternative Name"
|
||||
FROM vw_bi_dim_purchase_physical_contract pc
|
||||
WHERE ((1 = 1) AND (pc."intPurchaseLineId" > 0))
|
||||
UNION ALL
|
||||
@@ -15,7 +17,9 @@ UNION ALL
|
||||
sc."Price Fixing Status",
|
||||
sc."Bassin",
|
||||
sc."Book",
|
||||
sc."Customer Country" AS "Counterparty Country"
|
||||
sc."Customer Country" AS "Counterparty Country",
|
||||
sc."MtM Strategy",
|
||||
sc."MtM Strategy Aternative Name"
|
||||
FROM vw_bi_dim_sale_physical_contract sc
|
||||
WHERE ((1 = 1) AND (sc."intSaleLineId" > 0))
|
||||
UNION ALL
|
||||
@@ -32,8 +36,20 @@ UNION ALL
|
||||
END AS "Price Fixing Status",
|
||||
pc."Bassin",
|
||||
pc."Book",
|
||||
sc."Customer Country" AS "Counterparty Country"
|
||||
sc."Customer Country" AS "Counterparty Country",
|
||||
sc."MtM Strategy",
|
||||
sc."MtM Strategy Aternative Name"
|
||||
FROM ((vw_bi_itsa_fct_shipments s
|
||||
JOIN vw_bi_dim_purchase_physical_contract pc ON ((s."intPurchaseLineId" = pc."intPurchaseLineId")))
|
||||
JOIN vw_bi_dim_sale_physical_contract sc ON ((s."intSaleLineId" = sc."intSaleLineId")))
|
||||
WHERE (1 = 1);;
|
||||
WHERE (1 = 1)
|
||||
UNION ALL
|
||||
SELECT '0_0'::text AS "strConformedReferenceId",
|
||||
'N/A'::text AS "Conformed Trade Ref",
|
||||
'Monthly Adjustment'::text AS "Trade Type",
|
||||
'Fixed'::text AS "Price Fixing Status",
|
||||
'N/A'::text AS "Bassin",
|
||||
'N/A'::text AS "Book",
|
||||
'N/A'::text AS "Counterparty Country",
|
||||
'N/A'::text AS "MtM Strategy",
|
||||
'N/A'::text AS "MtM Strategy Aternative Name";;
|
||||
|
||||
Reference in New Issue
Block a user