Hello,
I have a #TempTable with huge amount of data. For example my table includes product_ID, ProductName, productLoc, User fields. When I Select * From #TempTable I get about 10000 records. I want be able to say I want get 5 randomly selected records for each user each time I run my select statement. Any example? Do very much appreciated.