"The query contains more than one unnamed or duplicate field name" 使用 SSRS

"The query contains more than one unnamed or duplicate field name" using SSRS

(select 
(case when CONVERT(VARCHAR(10), max(t1.Date), 103) = '01/01/1900' then '' else 
CONVERT(VARCHAR(24), max(dbo.UTC2BaseEntryWithDST(t1.Date,20,0)), 103)
END)as Date
from Table t0
inner join Table2 t1 on t1.ID = t0.ID)

但我在 Report Builder 中遇到错误

the query contains more than one unnamed or duplicate field name, please specify unique column

如何将“日期”名称放在查询的末尾?谢谢

Date 列名称两边加上双引号,以具有一个别名,该别名也是 SQL 中的关键字(或使用特殊字符,例如空格):

as "Date"