I have a database with Canadian province and cumulative data entry for a disease notification. I would like to use my highest disease reporting for each province. Province Number of cases Cumulative number Quebec 1 1 Ontario 2 2 Quebec 1 2 Quebec 1 3 BC 4 4 BC 1 5 etc
This is the data I would like to get Quebec 3 Ontario 2 BC 5
Can anyone tell me how to code this in javascript. My data base is in Json. Please note that I have minimum coding experience THank you
Not sure if
- first only add all data from the first column and use result
- select highest value for each province from cumulative data
- select last data entry for each province