以下是尝试使用Microsoft Server Server Studio运行的查询:
update [SG report]
set [percentage_paid] = ([Savings This Season (All)] / [Savings Goal Amount]) * 100
以下是尝试使用Microsoft Server Server Studio运行的查询:
update [SG report]
set [percentage_paid] = ([Savings This Season (All)] / [Savings Goal Amount]) * 100
One or both of your values are strings. Use
try_convert()
to convert them to an appropriate type. The specific type is not clear, but something like: