您好我正在尝试我的查询作为贝洛。请查看两个不同版本的查询及其错误消息。
SELECT first_value(col1) AS 'inv',col2
FROM dbo.table
--first_value' is not a recognized built-in function name.
SELECT dbo.first_value(col1) AS 'inv',col2
FROM dbo.table
--Cannot find either column "dbo" or the user-defined function or aggregate "dbo.first", or the name is ambiguous.
SELECT first_value(col1) AS 'inv',col2
FROM dbo.table
GROUP BY col2
--'first' is not a recognized built-in function name.
SELECT dbo.first_value(col1) AS 'inv',col2
FROM dbo.table
GROUP BY col2
--Cannot find either column "dbo" or the user-defined function or aggregate "dbo.first", or the name is ambiguous.
请任何帮助!