I want to insert a row into a table based on some condition that needs to be in the query itself.
Let\'s say I have two tables foo and bar. Each
foo
bar