Files
RecordAppInsights/mergeData.sql
2021-05-06 09:24:29 -05:00

8 lines
211 B
SQL

select 'Merging Stage into requests';
insert into requests select * from stage where not exists (select 1 from requests where requests.id=stage.id);
drop table stage;
select 'Vacuuming the DB';
vacuum;