Answers for "stratified sampling in sql"

SQL
0

stratified sampling sql

select d.*
from (select d.*,
             row_number() over (order by coursecode, newid) as seqnum,
             count(*) over () as cnt
      from degree d
     ) d
where seqnum % (cnt / 500) = 1;
Posted by: Guest on May-14-2020

Code answers related to "stratified sampling in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language