-3
SELECT
(CONVERT(VARCHAR(100),
(select SUM(TransactionAmount) as saleamount
from ProductSaleInformation
where StoreCode = 1
and RegionCode = 1
and BillDate Between '2015-06-01' and '2015-10-31') -
(select SUM(TransactionAmount) as saleamount
from ProductSaleInformation
where StoreCode = 1
and RegionCode = 1
and BillDate Between '2015-01-01' and '2015-05-31'))/
(select SUM(TransactionAmount) as saleamount
from ProductSaleInformation
where StoreCode = 1
and RegionCode = 1
and BillDate Between '2015-01-01' and '2015-05-31') + '%') AS SALESGROWTH
需要幫助的浮動轉換爲VARCHAR轉換錯誤,而在SQL Server中轉換浮動爲varchar
你能編輯這個問題來提供一個[最小,完整,可驗證的例子](http://stackoverflow.com/help/mcve)?所有這些代碼可能沒有必要解決您的問題。 – laylarenee
請發佈錯誤信息。 – Pang