(select top 1 percent A from B order by newid())
i want to get the random record from table B
(select top 1 percent A from B order by newid())
i want to get the random record from table B
USE like this...
select * from B where A in
(select top 1 percent A from B order by newid())
OR
select top 1 percent A from B order by newid()
Both will give you random rows every time....
EDIT :