Created
May 18, 2020 09:20
-
-
Save kovid-r/57adfe1ef093fb277c16a5f6cdc5ad95 to your computer and use it in GitHub Desktop.
Random Satellite of a Random Planet
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 * | |
from devstronomy.l_satellite | |
where planet_id = (select id | |
from devstronomy.l_planet | |
order by rand() | |
limit 1) | |
order by rand() | |
limit 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment