Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Review
So you think you can count?
Rounding functions and more
Review and practice
23. Exercise 1

Instruction

We'll start off easy.

Exercise

Calculate BMI for every character in the character table. BMI is calculated in the following way:

\text{BMI} = \frac{\text{weight\ in\ kilograms}}{(\text{height\ in\ meters})^2}

Round the result to integer. Show each character's name and their calculated BMI as the bmi column.

Note: height is measured in meters. Remember to change the type of the ROUND() function's first argument to numeric.