vault backup: 2023-10-18 07:50:10
This commit is contained in:
parent
ea4d8213d4
commit
4baa1c7382
@ -75,13 +75,13 @@ CREATE TABLE IF NOT EXISTS rlarp.price_pool_dev AS (
|
|||||||
SELECT
|
SELECT
|
||||||
jsonb_strip_nulls(
|
jsonb_strip_nulls(
|
||||||
jsonb_build_object(
|
jsonb_build_object(
|
||||||
'customer' ,CASE WHEN GROUPING(customer ) = 0 THEN customer END
|
'customer' ,CASE WHEN GROUPING(customer ) = 0 THEN customer END
|
||||||
,'chanwide' ,CASE WHEN GROUPING(chanwide ) = 0 THEN chanwide END
|
,'chanwide' ,CASE WHEN GROUPING(chanwide ) = 0 THEN chanwide END
|
||||||
,'nursery_region' ,CASE WHEN GROUPING(nursery_region ) = 0 THEN nursery_region END
|
,'nursery_region' ,CASE WHEN GROUPING(nursery_region ) = 0 THEN nursery_region END
|
||||||
,'greenhouse_region' ,CASE WHEN GROUPING(greenhouse_region ) = 0 THEN greenhouse_region END
|
,'greenhouse_region' ,CASE WHEN GROUPING(greenhouse_region ) = 0 THEN greenhouse_region END
|
||||||
,'baseitem' ,CASE WHEN GROUPING(baseitem ) = 0 THEN baseitem END
|
,'baseitem' ,CASE WHEN GROUPING(baseitem ) = 0 THEN baseitem END
|
||||||
,'v1dataseg' ,CASE WHEN GROUPING(v1dataseg) = 0 THEN v1dataseg END
|
,'v1dataseg' ,CASE WHEN GROUPING(v1dataseg ) = 0 THEN v1dataseg END
|
||||||
,'v0dataseg' ,CASE WHEN GROUPING(v0dataseg) = 0 THEN v0dataseg END
|
,'v0dataseg' ,CASE WHEN GROUPING(v0dataseg ) = 0 THEN v0dataseg END
|
||||||
)
|
)
|
||||||
) gset
|
) gset
|
||||||
,oseas
|
,oseas
|
||||||
|
Loading…
Reference in New Issue
Block a user