Dump - ITSA views

This commit is contained in:
AzureAD\SylvainDUVERNAY
2026-06-14 11:05:54 +02:00
parent 3a3e715336
commit af63a53372
27 changed files with 708 additions and 140 deletions

View File

@@ -55,7 +55,8 @@ CREATE OR REPLACE VIEW public.vw_bi_dim_sale_physical_contract AS
COALESCE(mtm."strComponentCurve", 'Undefined'::character varying) AS "MtM Component Curve",
dpc."strCounterpartyCountry" AS "Customer Country",
COALESCE(pvl."strState", ('Undefined'::character varying)::text) AS "Price Fixing Status",
('0_'::text || dpc."intSaleLineId") AS "strTradeLineId"
('0_'::text || dpc."intSaleLineId") AS "strTradeLineId",
COALESCE(mtm."strStrategyAltName", ('Undefined'::character varying)::text) AS "MtM Strategy Aternative Name"
FROM ((vw_utility_dim_physical_sale_contract dpc
LEFT JOIN vw_utility_physical_mtm_definition mtm ON (((dpc."intSaleLineId" = mtm."intContractLineId") AND (mtm."strContractType" = 'Sale'::text) AND ((mtm."strComponentFixType")::text = 'Market price'::text))))
LEFT JOIN pricingstatus pvl ON ((dpc."intSaleLineId" = pvl."intContractLineId")));;