I'm struggling on how can I fix, for example, 5 random rows of my table in SQL. But I need to be able to repeatable retrieve the same 5 rows every time I run the code with a given seed.
I tried to use
SELECT TOP 5 *
FROM mytable
ORDER BY NEWID()
But I didn't get the same sample each time that I run the code.
Any idea on how can I do that?