JPAを使用して、さまざまなテーブルからデータをフェッチし、クエリを使用して単一の結果リストに入れようとしています:
SELECT x.a, y.b FROM (SELECT * from a) as x, (SELECT * FROM b) as y
ただし、例外がスローされています。
Caused by: com.sap.sql.sqlparser.CommonSQLParserException: - 1:256 - SQL syntax error: not a table reference
- 1:256 - Intermediate-SQL syntax error: table reference must be a table name
- 1:261 - SQL syntax error: arguments in FROM clause of SELECT must be tables or a JOIN of tables
- 1:423 - SQL syntax error: not a table reference
- 1:423 - Intermediate-SQL syntax error: table reference must be a table name
- 1:527 - SQL syntax error: not a table reference
上記のクエリを解決または再構築する方法についてアドバイスしてください。