divide the value of a column by another column

坚强是说给别人听的谎言 提交于 2019-12-22 14:57:08

问题


I want to divide a value of a column by the value of another column and display the result as separate column

ex:

project name             total-percent        no.of screen
------------            --------------        -------------
pro-1                     150                     5
pro-2                      50                     3

now i want to divide total-percent by no.of screen and display the result in another column


回答1:


Select total_percent / no_of_scren as 'result' From yourTableName


来源:https://stackoverflow.com/questions/8257106/divide-the-value-of-a-column-by-another-column

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!