try something like this:I think this only works in SQL 7.0+SET ROWCOUNT allows you to tell SQL server how many rows you want to return. The "200" can be a variable (like @RowsToReturn)ORDER BY NewID() Is a SIMPLE way to return random records.SET ROWCOUNT 200SELECT lname,fname,empid,item,pay_location,sub FROM emp_information_test WHERE item Not in (0845,1004,1060,2574,8008,8013,8014,8015,8016,8017,8019,8023,8645) AND empid LIKE '_[123]%'ORDER BY NewID(), lnameSET ROWCOUNT 0
Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda>