SELECT * FROM tab1, tab2 WHERE tab1.x = tab2.y ORDER BY tab1.x desc; <-- this tells the interface you're ready to process