I'm working on an application that prints labels of customers to be used in normal mail envelopes. The user chooses how many labels of customer's data will be printed.
I'm using a WHILE loop to select the same row the number of times I need it and insert it in a table variable.
Is there a better way to do this? I think there could be a better way, but don't know it!