Let\'s say I already have 2 table with movies and their ratings.
CREATE TABLE public.movies ( movieid int4 NOT NULL, averagerating float4 NULL, title varchar(255)