我不知道应该在下面的 SQL 查询中写什么来显示“ date”列: “ month-year”-“9-2011”。
SELECT MONTH(date) + '.' + YEAR(date) AS Mjesec, SUM(marketingExpense) AS SumaMarketing, SUM(revenue) AS SumaZarada
FROM [Order]
WHERE (idCustomer = 1) AND (date BETWEEN '2001-11-3' AND '2011-11-3')
GROUP BY MONTH(date), YEAR(date)
因此,我想要做的是将第一列中的数据更改为显示月份和年份,而不是仅显示月份。