I have simple query
select round((bca_total_lean/(bca_total_meta + bca_total_fat))*100,0) as lean_mass_percent from x where...
as result, I see 0. for bca_total_lean/bca_total_fat result is ok. By bca_total_meta is 0.
All fields are integers and all results are greater than 0. The same operation in this data in PHP returns 83. I also tried without a round function. The same result. Separated data return by BD
- meta : 77391
- fat: 11892
- lean: 74362
Any hints where is an error?