https://app.dataquest.io/m/257/guided-project%3A-analyzing-cia-factbook-data-using-sql/7/next-steps
%%sql
select
name,
area_land,
area_water,
(area_water/area_land) as land_water
from facts
where
area_water > 0
limit 1
I expected to get land_water ratio, in this case: 0.049
Instead of this I received a 0.
if instead of dividing one field by another divided by an integer the division operator works correctly, so I have also tried to do a “cast” at int of both fields in case they come in a different format than a number, but it hasn’t worked
Thanks you all