I'm unable to wrap my head around an easy way to do this. I've got a query that returns mailing labels for products people purchased. How can I force two rows in the case that someone bought 2 items?
A table something like this...
ID, Quantity, Mailing Label
...needs to output as many rows as listed in the quantity for the row.
It seems silly I'd have to jump into SQL cursors to do this. I might though.