How can I test whether these two queries are equivalent? – Postgresql
I'm wondering if the two queries below are equivalent to each other: SELECT messages1.id, messages1.channel FROM (SELECT * FROM messages WHERE channel IN ('U560')) messages1 LEFT JOIN read_messages ON messages1.id = read_messages.message_id WHERE read_messages.id IS NULL; SELECT "messages"."id", "messages"."channel" FROM…