MySQL limit parameters relative to a row value
I have a boxes table with a box_size column. I want to fetch a set of
boxes with a total size of 16 how should I do this?
for example fetch 16 row with box_size = 1 , or two rows with box_size = 4
and 4 rows with box_size = 2 etc.
No comments:
Post a Comment