select statement query

jonathen

Member
Joined
May 12, 2005
Messages
17
Programming Experience
1-3
I have a table with records in that one of the columns (called "entries") has an integer. What I want to do is select all records from the table, but if a row has (for example) 37 as the value for "entries", then that row is selected 37 times.

So for example:

select name,entries from mytable

this returns:

John Smith,37

I'd like to instead return:

John Smith
John Smith
John Smith

...and so on 37 times, or however many times matches the value of the "entries" integer.

Any ideas?

Thanks,

Jon
 
Back
Top