Duplicating records to fill gap between dates
问题 I need to do something really weird, which is to create fake records in a view to fill the gap between posted dates of product prices. Actually, my scenario is a little bit more complicated than that, but I've simplified to products/dates/prices. Let's say we have this table: create table PRICES_TEST ( PRICE_DATE date not null, PRODUCT varchar2(13) not null, PRICE number ); alter table PRICES_TEST add constraint PRICES_TEST_PK primary key (PRICE_DATE, PRODUCT); With these records: insert into