• Hmmm - you've posted this to the wrong forum.

    In any case, what do you mean by you "want" the records?

    Do you want the first 5000 records to have some flag set, then the next 2000, etc? Or do you want to be able to return them in a query?

    In either case, how do you define "first"? You'll need to work out how you want to order the data. This could be by date, name, colour, size, etc, etc depending on what attributes you have for your data. Now that I look again you have employees (the "emp" name is usually for this?) so I suppose name, hire date, salary, etc could be reasonable criteria.

    Are you actually running SQL 2000 or did you just post this question in a forum with 2000 in the name? There are easier ways to do this in 2005...