I want to randomly sample some subset of my data, using a random seed so that it will be repeatable. Currently, I have this working minus the seed:
select * from my_table
where version is not null
and start_datetime::date >= date('2020-03-16')
and start_datetime::date < date('2020-05-15')
order by random()
limit 10000
Now I'd like to set a random seed so I can reliably get the same results from this query.
Is there a good way to do this?