PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

PostgreSQL - INNER JOIN due tabelle con un LIMIT

Prova questa query:

select *
from
    tableA a
        inner join
    tableB b
        on a.common = b.common
        inner join 
    (select * from tableC order by some_column limit 15) c
        on b.common = c.common