You want to convert the data above to a resultset with 51 records?10 of them is "Manchester", 15 of them are "Leeds" and 26 of them are "London"?-- prepare test datadeclare @t table (City varchar(100), items int)insert @tselect 'Manchester', 10 union allselect 'Leeds', 15 union allselect 'London', 26select * from @t-- do the workselect t.cityfrom @t tinner join ( select number from master..spt_values where name is null ) q on q.number < t.items
Peter LarssonHelsingborg, Sweden