$ 0 0 Smetah,The same way. Use NEWID() and choose the TOP X from each group, using window functions such as ROW_NUMBER.-SeanSean Gallardy | Blog | Twitter