Comparing two rows in PostgreSQL (2 Solutions!!)

Published --