Last active
May 18, 2020 11:09
-
-
Save kovid-r/d52f5694cf9f21195b9c9c3b470dae78 to your computer and use it in GitHub Desktop.
Random test data generation Devstronomy
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 distinct * | |
from (select * | |
from devstronomy.l_satellite | |
where rand() < .5 | |
union all | |
select * | |
from devstronomy.l_satellite | |
where rand() > .5 | |
) t | |
order by rand() | |
limit 100 | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment