Postgresql – SQL Error in stacked WHERE statements using WHERE NOT EXISTS
I'm having a reoccurring error in my SQL statement, and I cannot figure out how to fix it. The ERROR: syntax error at or near "WHERE" is not very helpful as well. This is the code snippet in question: INSERT…