debug inquirey

This commit is contained in:
Paul Trowbridge 2023-12-11 10:58:24 -05:00
parent 229291f9bc
commit 50781c6b2f

View File

@ -1,5 +1,5 @@
WITH
sel AS (select 'v1:L..PLT..' _v1ds, 'DREAM WITH COLORS' _cust, 'UL.12000' _mold, 'D' _chan)
sel AS (select 'v1:L..PLT..' _v1ds, 'GRIFFIN' _cust, 'ULH12000' _mold, 'W' _chan)
,sort AS (
SELECT
p.agglevel
@ -151,4 +151,5 @@ FROM
--SELECT jsonb_pretty(jsonb_agg(doc)) FROM rel_sort
--SELECT jsonb_pretty(jsonb_obj_aggc(doc)) FROM rel_sort--INTO _result FROM rel_sort WHERE rnk = 1;
--SELECT * FROM rel_sort;
SELECT jsonb_obj_aggc(doc) FROM rel_sort WHERE rnk = 1;
SELECT * FROM flag
--SELECT jsonb_obj_aggc(doc) FROM rel_sort WHERE rnk = 1;