commit: 2025-03-31 15:21:01

This commit is contained in:
Paul Trowbridge 2025-03-31 15:21:01 -04:00
parent aa8367e6e7
commit c46402c1cb
2 changed files with 7 additions and 0 deletions

View File

@ -339,6 +339,7 @@ SELECT shipgrp, min(oseas) oseas FROM profile GROUP BY shipgrp
LEFT OUTER JOIN rlarp.repc r ON LEFT OUTER JOIN rlarp.repc r ON
r.rcode = grp.dsm r.rcode = grp.dsm
) )
,orphans AS (
SELECT SELECT
account account
,shipgrp ,shipgrp
@ -370,5 +371,7 @@ SELECT shipgrp, min(oseas) oseas FROM profile GROUP BY shipgrp
,pltq ,pltq
,guid ,guid
,least(hist_price, price, avgprice) lowest_last ,least(hist_price, price, avgprice) lowest_last
,least(hist_price, price, avgprice, floor) lowest_floor
FROM FROM
nguid nguid
)

View File

@ -195,6 +195,7 @@ pgrp AS (
LEFT OUTER JOIN rlarp.repc r ON LEFT OUTER JOIN rlarp.repc r ON
r.repp = grp.dsm r.repp = grp.dsm
) )
,baseline AS (
SELECT SELECT
account account
,shipgrp ,shipgrp
@ -226,5 +227,8 @@ pgrp AS (
,pltq ,pltq
,guid ,guid
,least(hist_price, price, avgprice) lowest_last ,least(hist_price, price, avgprice) lowest_last
,least(hist_price, price, avgprice, floor) lowest_floor
FROM FROM
guid guid
)
SELECT * FROM baseline