Comment Comment by mullsork SQL MERGE looks great! I hope I remember it when the time comes, instead of writing 3 separate queries.edit: Postgres docs on MERGE: https://www.postgresql.org/docs/15/sql-merge.html parent mullsork 4 years ago
edit: Postgres docs on MERGE: https://www.postgresql.org/docs/15/sql-merge.html