Commit all views for ITSA
This commit is contained in:
10
Database Backups/SQL Views/vw_utility_price_curve_prices.sql
Normal file
10
Database Backups/SQL Views/vw_utility_price_curve_prices.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE OR REPLACE VIEW public.vw_utility_price_curve_prices AS
|
||||
SELECT pp.id AS "intPriceCurveId",
|
||||
ppv.price_date AS "dtmPriceDate",
|
||||
(ppv.high_price)::numeric(18,6) AS "dblHighPrice",
|
||||
(ppv.low_price)::numeric(18,6) AS "dblLowPrice",
|
||||
(ppv.open_price)::numeric(18,6) AS "dblOpenPrice",
|
||||
(ppv.price_value)::numeric(18,6) AS "dblPriceValue"
|
||||
FROM (price_price pp
|
||||
LEFT JOIN price_price_value ppv ON (((pp.id = ppv.price) AND (ppv.active = true))))
|
||||
WHERE ((1 = 1) AND (pp.active = true));;
|
||||
Reference in New Issue
Block a user