Where do I find all the functions I can use in database or mathematically in general?
Every time someone gives a rating on one of my Locations, I want to get the mean of the last 10 bookings of that location (stored in Bookings) and store that back into the Location overall rating.
I think I can do this manually with various database queries and states but I’m wondering if there’s any handy functions I can use that will make such a task (ideally, much) easier?
1 - Grab the list of the last 10 ratings: There are several ways of doing it, but one way is doing a search for them, sort them by creation date and choosing the first 10.
2 - Then use the “group by” feature to group them and take the mean of them.
I’m wondering what I’m doing wrong here. First of all where does this list actually go? Second what is wrong with my logic? It seems to make sense but Bubble says nope.