select * from EmployeeScheduleRoles esr
inner join
(
select esr.ScheduleID from Schedules sch
inner join EmployeeScheduleRoles esr on esr.ScheduleID = sch.ID
inner join Employees emp on emp.ID = esr.EmployeeID
where emp.ID = 15921
) subqry on subqry.ScheduleID = esr.ScheduleID
限制:不允许“包含()”。