Skip to main content
1 of 4
Martin Smith
  • 86.5k
  • 15
  • 252
  • 342

You could also use

SELECT GroupID,
       SomeValue
FROM   tablename
ORDER  BY MAX(CRYPT_GEN_RANDOM(4)) OVER (PARTITION BY GroupID),
          SomeValue; 

Online demo

Martin Smith
  • 86.5k
  • 15
  • 252
  • 342