I am having trouble with a sql query. I need to insert a row if the same row does not exist already. This is what I have so far:
DECLARE BEGIN FOR FOLDE
You forgot the THEN
IF condition THEN ... ELSE ... END IF;