Where is the data going into @tbl coming from?To set up that table you can do...Declare @tbl table ( addressID int, addressText Varchar(max), countryID int)Insert @tblSelect 1, 'address', 100 Union AllSelect 2, 'address2', 101 Union All......Select 100, 'address100', 200
Or use a select statement to get your info to put into @tbl.Note: This follows exactly what Madiv was telling you to do, my question is more of where are you getting the data to stuff into @tbl??