Imagine I have a model named Score, and on day 1 I insert 5 scores, on day 2,3 and 4 no scores, and on day 5 another 4 scores. Now, I would like to perform a comparison of the number of scores inserted today ( let’s imagine today is day 10 ), versus the last time scores were submitted. What would be the most optimum way of getting a list of all the scores inserted last time? In this example, it’s the list of scores inserted in day 5, but I would appreciate a generic way of achieving this.
Imagine I have a model named Score , and on day 1 I insert
Share
Try this:
Now you can get the
recentscores as: