A co-worker just came to me with a puzzling SQL query:
(essentially)
SELECT LEAST(id) FROM tableA A, tableB B WHERE a.name = b.name(+)
The result set returned lists three numbers however:
LEAST(id)
--------------
621
644
689
(all being IDs that meet the query as if it lacked the LEAST function all together)
Why? =)