How To Use DESelect Segment
Step 3: Preview and Run
Why is there discrepancy on results from Query Studio and DESelect Segment?
sometimes, when running a query in salesforce marketing cloud (sfmc), you might notice that query studio returns more records compared to deselect this can be confusing, especially if you expect the same result from both solutions the reason query studio and deselect segment handle primary keys differently query studio creates a de without automatically setting primary keys, so duplicate records are included deselect segment uses the primary key defined in your de and automatically removes duplicate records how to fix it edit your de in deselect segment, remove the primary field (eg contact key), and click save re add the primary field (eg contact key) without setting it as a primary key make the field nullable run your query again now, both query studio and deselect segment should give you the same result with duplicate records