Skip to content

Instantly share code, notes, and snippets.

@wvpv
Last active January 9, 2023 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wvpv/437fd06643695227539995aa1731087d to your computer and use it in GitHub Desktop.
Save wvpv/437fd06643695227539995aa1731087d to your computer and use it in GitHub Desktop.
select top 25 percent
de1.field1
, de1.field2
from [dataextension1] de1
left join [dataextensionsplit_1] split1 on split1.[email address] = de1.[email address]
where 1=1
and split1.[email address] is null
order by newid()
/* writes to dataextensionsplit_2 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment