8

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 Answers1

25
Select total_percent / no_of_scren as 'result' From yourTableName
Mahmoud Gamal
  • 78,257
  • 17
  • 139
  • 164