I would like to confirm that the SQL query
SELECT .... FROM apples, oranges LEFT JOIN kiwis ON kiwis.orange_id = oranges.id, bananas WHERE ....
exactly equivalent to other permutations in a subclass of FROM, for example
SELECT .... FROM oranges LEFT JOIN kiwis ON kiwis.orange_id = oranges.id, bananas, apples WHERE ....
or
SELECT .... FROM bananas, apples, oranges LEFT JOIN kiwis ON kiwis.orange_id = oranges.id WHERE ....
while the apparent LEFT MEETING between the oranges and kiwi remains intact. From what I read in different documents, the returned set should be exactly the same.
I'm really only interested in the results of the query, not its performance in a real database. (I use PostgreSQL 8.3, which AFAIK does not support optimizer hints about the connection order and will try to automatically create the optimal query plan).
sql join postgresql ansi-sql
Radio Yerevan
source share