Fetching data in groups with read_group()

In the previous recipes, we saw how we can search and fetch data from the database. But sometimes, you want results by aggregating records, such as the average cost for last month's sales order. In this case, you can use the read_group() method to get the aggregate result.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset