Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
387 B
0
Indexable
CREATE MATERIALIZED VIEW hobs_ods_staging.cart_details_by_createdtime_key AS
SELECT businessid, createdtime, key, buid, opid, status, type, updatedtime, username, value, valuetype
FROM hobs_ods_staging.cart_details
WHERE businessid IS NOT NULL AND createdtime IS NOT NULL AND key IS NOT NULL
PRIMARY KEY (businessid, createdtime, key)
WITH CLUSTERING ORDER BY (createdtime ASC, key ASC);