I have two tables (report table has over millions records)
CREATE TABLE data ( id serial primary key, value varchar(50) not null ); CREATE TABLE rep