Quote:
Originally Posted by felito
I would like to know how can i limit the output by the number of id_offers and not the number of rows.
|
may i ask what you're going to do with the tags?
perhaps a GROUP_CONCAT of the tags for each id is feasible?
so instead of producing this --
Code:
id_offer tags
77 xx
76 xx
76 xx
75 xx
75 xx
74 xx
74 xx
73 xx
73 xx
72 xx
the query will produce this --
Code:
id_offer tags
77 xx
76 xx,xx
75 xx,xx
74 xx,xx
73 xx,xx
72 xx
and then LIMIT will work on the summary rows, one per id