My query is like this:
select top 50 Empid from (Select top 50 Empid from Emp inner join campus on Emp.CampusId=campus.CampusId join
departments on Emp.department=departments.deptid
where campus.Cname='Mumbai' ) x order by NEWID();
But Here the number 50 is not constant it is variable(calculted value). So, I want get all the Empids in one datatable and then I need to select few of them randomly (In the above example 50)..Is it possible to do using dataview??