在 SSRS 中使用以下示例查询将返回月份作为单个数字 (1-12)。我想要将日期显示为 2000 年 1 月之类的日期。我将如何更改我的代码以便能够从单个数字月份格式化为 MMM YYYY 格式?我在 Visual Studio 本身中尝试了格式化,但它目前返回为 MMM YYYY。
select distinct count(*) as Count,
con.STATE,
month(con.sub_Date) as Month,
year(con.sub_Date) as Year
from contract con
group by con.STATE,month(con.sub_date),year(con.sub_date)