Well some of the things you can do are:1. Create a UNION query. But the downside to this is that you have to repeat the sql over and over. SELECT Cod, [Name] FROM TableX UNION ALLSELECT Cod, [Name] FROM TableX WHERE [NAME] = 'John'UNION ALLSELECT Cod, [Name] FROM TableX WHERE [NAME] = 'John'UNION ALLSELECT Cod, [Name] FROM TableX WHERE [NAME] = 'John'
2. Another option would be to create a temporary table or a new table then do a loop to insert the data. Then use the temp table as the datasource for your mailing labels. DECLARE @InsertNum INT SET @insertnum = 3SELECT * INTO #tablex FROM tablex --create your temp table SELECT @insertnumWHILE (@InsertNum <> 0 ) BEGIN INSERT INTO #Tablex SELECT Cod,[name] FROM Tablex; SET @insertNum = @InserTNum - 1 Print @InsertNum END SELECT * FROM #tablex ORDER BY Cod
dallr