Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Divide column X By Y when Y is Greater than Zero

$
0
0

How do I accomplish this task using T-Sql: If column A > 0,(B/A) *100 ?

Basically, I am checking that column A is not equal to 0 before dividing column B by a so I do not get error. Thank you


Zionlite


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>