I have a requirement I need to choose only a selected number of records from a group. However, I also need to flag the not choosen records in the even that they will need to be referred to at a later date.
I have over 80K records in Segment 1. The requirement is to select 50000 records
I've tried this:
UPDATE mytable
SET [SuppressionReason] = 'REC LIMIT REACHED - S1'
WHERE
[ID] NOT IN
(
SELECT TOP 50000 [ID] FROM mytable
WHERE segment = '1'
);
However, this results in 0 records getting labeled in the SuppressionReason field as 'REC LIMIT REACHED - S1'. What am I missing or doing wrong?