I am trying to create random data and insert it into a table. Right now just thinking what'd be the efficient approaches to get this done. e.g.
Create volatile table mytb , no fallback, no journal
( C1 integer not null
C2 Varchar (50) Not null ,
C3 D1 Date Not null,
C4 D2 date not null
) with data primary index ( c1) on commit preserve rows;
What I want is to insert value randomly for X iterations for a specific List or range of each column value . e.g. C1 range is between 30 and 3000000 C2 is a list with ( 'approved','pending','unknown','disputed','wip','processed','pre-processed','denied' ) etc C3 is a date between 01-01-1999 to 12-31-2015 etc Then for say 1 million iterations I'd like to insert random values for these columns and CREATE a SKEW for certain values- that is there should be abundance of these values vs the rest. Has someone had a dig at this before . What the best way to do it - recursive Q logic ?