Hello
I want to use a survey in my app, and the results should be returned to the user right after completion. Everything is good so far, I can store the answers in numbers in a collection in the database. I'm having trouble calculating the results.
In my database the values in a row are something like:
username,2,4,5,3,5,4,2,4,5,1,2,3,4.
I want to do a calculation with some specific columns only (basically using sum, multiply and divide). The username I can get from a local storage, just don't know how to reference the numbers in a code. Can you help me with that?
Thanks!