Apply YEAR and MONTH functions after subtracting 1 month from current date.
Example: Because you are iquiring salary_date, using current date would be enough.
Code:
select * from employee
where year (salary_date) = year (current date - 1 month)
and month(salary_date) = month(current date - 1 month)
Another example:
Code:
SELECT *
FROM employee
WHERE salary_date
BETWEEN LAST_DAY(current date - 2 MONTH) + 1 DAY /* first day of previous month */
AND current date - DAY(current date) DAYs /* last day of previous month */
;