Have a look here: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#groupby-having
Combining this with: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#sum-avg-min-max-and-len Is it what you need? Best regards Clemens On Wednesday, October 27, 2021 at 4:44:11 PM UTC+2 mostwanted wrote: > I have a sales database table that records items sold in a store, an item > can appear several times in the table having been sold several times or in > different days. What i wanna do is display this information in an html > table in a view without the item names repeating also with the sold > quantity summed up for every item that appears more than once, how can i > achieve this? > > Regards > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/17758de7-fb21-496a-8b86-41f3f325015an%40googlegroups.com.