It would be somewhat like
-- Script to Insert records
INSERT into tableB (columns_list)
SELECT columns_list
FROM tableA
WHERE not exists (SELECT * FROM tableB where tableA.matching_column = tableB.matching_column)
-- Select records
SELECT *
FROM tableA INNER JOIN tableB ON tableA.matching_column = tableB.matching_column