do_populate_results.sql

This page documents the preview (v2.21) version. Preview includes features under active development and is for development and testing only. For production, use the stable (v2024.1) version.

Save this script as do_populate_results.sql.

do $body$
declare
  nof_buckets constant int not null := 20;
begin
  delete from results;
  call do_ntile        (nof_buckets);
  call do_percent_rank (nof_buckets);
  call do_cume_dist    (nof_buckets);
end;
$body$;