0

我正在使用单个查询:

(SELECT *,'{"Source": "010","Keys": [{"Value": "CHARGE"}]}' AS ID1 
FROM DETAILS) metrics
JOIN DIM.TYPE trant
ON metrics.ID1 = trant.BK_TRANSACTIONTYPE

但我收到此错误:

SQL 编译错误:第 3 行语法错误,位置 30 出乎意料的“指标”。

请告知如何解决。

4

1 回答 1

0

您能否尝试以下查询。希望它有效:)

SELECT * FROM (SELECT *,'{"Source": "010","Keys": [{"Value": "CHARGE"}]}' AS ID1 FROM DETAILS) metrics JOIN DIM.TYPE trant ON metrics.ID1 = trant.BK_TRANSACTIONTYPE
于 2021-09-15T14:11:45.640 回答