how sql matter gets law around charge table? (many many)
i have 3 tables (archive sections, domain (may) go archives):
archiveid pkdescription
archive_to_sectionarchive_id pk fksection_id pk fk
sectionid pkdescription
what sql feeling list sections go certain repository id?
i am only training sql. i've review sounds i need join, union? fyi i'm controlling postgres.
[edit] answer gdean2323 combined but aliases:
select section.*
from domain
inner join archive_to_section
on section.id = archive_to_section.section_id
where archive_to_section.archive_id = $this_archive_id
Comments
Post a Comment