I have a query:
SELECT s.period, s.year, s.amount FROM salaries s
I would like to select from salaries table only the rows th
salaries
Try this:
SELECT s.period, s.year, s.amount FROM salaries s where s.period in (select period from periods) and s.year in (select year from periods)