while select table2 order by field1 where table2.field2 == table3.field2 join table1 order by field1 where table1.field1 == table2.field1