I have 300 entries in my database and my structure is something like this
State values Queensland 4554 Queensland 2343 Queensland 9890 NSW 1333
I want to get all records with Queensland status name, and I want to sum all records with field names and the sum, which will be divided by the number of records (account) with state name.
Can someone help me with the syntax to achieve this?
I need something so that the output is 5595.66 (i.e. (4454 + 2343 + 9890) / 3)
source share