I have a table in postgresql dealing with product information, and I want to show what changes between product versions. Here is what I have come up with in pure sql, but conver