Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SQLServer管理スタジオを使用しています。salaryという名前の列があります。給与に基づいて別の計算列(salary *20%+salary)/85が必要ですが、結果が得られません。
(salary *20%+salary)/85
[プロパティ]タブの[計算列の仕様]タブに数式を入力してみました。
これは無効な SQL 計算です。
パーセンテージを掛ける代わりに、100 で割り、パーセンテージ値を掛けます。
(((salary/100)*20)+salary)/85
以下を使用して値を計算できるはずです。
(salary * 1.2) / 85
SQL フィドルのデモを見る