我想做这样的事情:
select
EmployeeID e,
SupervisorID s
from
ReportingStructure
where
count(select SupervisorID from ReportingStructure where EmployeeID = e) > 1
查找拥有多个主管的所有员工的员工 ID 和主管 ID。但我得到一个语法错误:
关键字“select”附近的语法不正确。
')' 附近的语法不正确。
我怎样才能得到这些数据?