I started by googling and found the article How to write INSERT if NOT EXISTS queries in standard SQL which ta