题解 | 查询培训指定课程的员工信息
SELECT st.staff_id, st.staff_name FROM staff_tb as st RIGHT JOIN( SELECT * FROM cultivate_tb as ct WHERE course like "%course3%" ) as ct ON st.staff_id = ct.staff_id GROUP BY st.staff_id, st.staff_name
SELECT st.staff_id, st.staff_name FROM staff_tb as st RIGHT JOIN( SELECT * FROM cultivate_tb as ct WHERE course like "%course3%" ) as ct ON st.staff_id = ct.staff_id GROUP BY st.staff_id, st.staff_name
相关推荐