我在尝试使以下内容在 SQL Server 中工作时遇到了一些困难:
CREATE TABLE table_X AS
SELECT
NEXT VALUE FOR GROUP_A AS GROUP_ID, RISK_ID
FROM
( SELECT UNIQUE RISK_ID, FROM table_Y ) SS;
有人告诉我:
"Incorrect syntax near the keyword 'SELECT'."
"Incorrect syntax near the keyword 'UNIQUE'."
究竟是什么问题,我该如何解决这个问题SQL Server
?