Search code examples
sqlgoogle-bigquerysubtraction

How to subtract the cumulative values of confirmed, recovered and deseased?


I would like to subtract the cumulative values of confirmed, recovered and deceased. However, it does not work, Google BigQuery keeps giving me this error message enter image description here(look at the pic). All attributes are INTEGER.


Solution

  • The error message is pretty clear. You have mixed types in the data -- suggesting that something is wrong.

    Presumably, the offending value is cumulative_recovered which you do not show to be an int64.