Infosys BPM Interview Question

Write a SQL to merge and union?