两次LEFT JOIN之后的ORDER BY

时间:2015-05-05 16:57:55

标签: sql oracle sql-order-by left-join

我有一个如下的查询

SELECT veh_year FROM table1 
  LEFT JOIN table2
   ON table1.veh_year = table2.veh_year
  LEFT JOIN table3
   ON table1.veh_year = table3.veh_year
  ORDER BY table3.some_other_column;

我在ORDER BY关键字上看到错误

ORA-01791: not a SELECTed expression 01791. 00000 - "not a SELECTed expression"

如何通过table3.some_other_column订购?

0 个答案:

没有答案