Hi all - I'm ussing SSMS 2008 and have the following table (there's about 100 rows):
USER_ID BALLOT_COUNT
jsmith 5
mdoe 3
JRoberts 2
I'd like to output the usernames on multiple lines based on the ballot count. Any idea how I can acheive this?
jsmith
jsmith
jsmith
jsmith
jsmith
mdoe
mdoe
mdoe
JRoberts
JRoberts
SELECT USER_ID, BALLOT_COUNT FROM TABLE1