convert to materialized view
This commit is contained in:
parent
e04021caa1
commit
2bf970eb06
@ -1,4 +1,6 @@
|
||||
CREATE TABLE pricequote.lastpricedetail AS
|
||||
DROP TABLE pricequote.lastpricedetail
|
||||
|
||||
CREATE MATERIALIZED VIEW pricequote.lastpricedetail AS
|
||||
WITH base AS (
|
||||
SELECT
|
||||
customer,
|
||||
@ -122,3 +124,5 @@ FULL OUTER JOIN seg_json s
|
||||
WITH DATA;
|
||||
|
||||
--SELECT * FROM pricequote.lastpricedetail;
|
||||
|
||||
CREATE INDEX lastpricedetail_idx ON pricequote.lastpricedetail(customer, partgroup);
|
Loading…
Reference in New Issue
Block a user