Quantcast
Channel: Select query returns 0 for calculating percentage using division operator
Viewing all articles
Browse latest Browse all 4

Select query returns 0 for calculating percentage using division operator

$
0
0
When I do,
 select (group_total/total)*100 from transfer_out_summary;

The rows are returning with 0 values.
group_total has 12969 and total has 115973
I am actually calculating percentage. How to correct this please?

Thanks in advance.

Viewing all articles
Browse latest Browse all 4

Trending Articles



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