こんにちはベロとして私のクエリをしようとしています。クエリの 2 つの異なるバージョンとそのエラー メッセージを参照してください。
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.
助けてください!