Last active
December 31, 2018 16:00
-
-
Save wvpv/d8415d0011f6b76f865de0cdfd45bb40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select top 1 with ties | |
b.bounceCategory | |
, b.sendid | |
from _bounce b | |
order by row_number() over (partition by b.bounceCategory order by newid()) | |
/* list all of the bounce categories and return */ | |
/* a random sendid/jobid associated with each one */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment