The package below performs insert into a warehouse database, from 2 other tables via SQL. Federation should be set beforehand.