我正在尝试根据类型为money的列对结果进行排序。排序似乎没有产生预期的结果。
询问 :
SELECT ItemID, ItemName, Total,
'$' + replace(convert(varchar,cast(Volume as money),1), '.00','') as Volume,
'$' + replace(convert(varchar,cast(Average as money),1), '.00','') as Average,
FinalTotal
FROM @FinalTabVariable
ORDER BY Average DESC
谢谢
BB