I have two tables A and B.
A has an id for rows in table B, and a counter:
b_id integer not null references B(id),
count integer not null default 1
Is there a way in Postgres to return query of A with the rows in B where the rows are repeated count times?