我有一个选择内部选择的查询 select中的select有一个order by。
问题是Pervasive会在订单上给出错误。
查询:
select itemID,item1,item2 from "table2" where itemID in (select top 1 itemID from "table1" order by ID desc)
错误:
[Pervasive][ODBC Engine Interface]Syntax Error: select itemID,item1,item2 from "table2" where itemID in (select top 1 itemID from "table1" order<< ??? >> by ID desc)
我做错了什么?