SELECT
CONVERT(datetime, call_start_time,100)
+ CONVERT(datetime, call_start_time,120) as YEAR,
SUM(call_duration) AS Total_CDR
FROM temp_txn_rated_retailcdr
GROUP BY
CONVERT(datetime, call_start_time, 100)
+ CONVERT(datetime,call_start_time,120)
ORDER BY year DESC
我想按月订购结果..请帮帮我。当我现在这样做时,它会根据字母字符进行排序。