A SQL MERGE statement performs actions based on a RIGHT JOIN between target and source tables| Java, SQL and jOOQ.