hpr-tools/PostgreSQL_Database/episodes_series.pgsql

6 lines
221 B
PL/PgSQL

select e.id, e.release_date,e.title, s.name as series_name
from episodes e
join episodes_series_xref es on (es.episodes_id = e.id)
join series s on (es.series_id = s.id)
where e.id between 2300 and 2400
order by e.id;