delete from o1;
delete from o2;

select hh1 as id, hh2 as price from p1 union
select hh1 as id, hh2 as price from p2;

insert into o1 (id, price)
select hh1 as id, hh2 as price from p1 union
select hh1 as id, hh2 as price from p2;

insert into o2 (id, price)
select hh1 as id, hh2 as price from p1 union
select hh1 as id, hh2 as price from p2;

select id, price from o1;
select id, price from o2;
