Как использовать «семя» для генерации случайных чисел с временными таблицами в Redshift Sql?
-- Without temp table seed works: result is always 21
set seed to .25;
select cast (random() * 100 as int);
-- With temp table seed does not work, i.e. the result is always different :
set seed to .25;
drop table if exists a;
CREATE TEMP TABLE a
as(select cast (random() * 100 as int));
select * from a;
set seed to .25;
drop table if exists a;
CREATE TEMP TABLE a
as(select cast (random() * 100 as int));
select * from a;
Заранее большое спасибо