请问怎么在Access里用SQL同时提取信息和计数。 我不会同时用count 和select 其他信息 100
就是在不同表里提取经理信息,然后显示出他的工资部门和计算部门有多少人。现在是用SELECTManager,FirstName,Surname,AnnualsalaryFR...
就是在不同表里提取经理信息, 然后显示出他的工资 部门和计算部门有多少人。
现在是用
SELECT Manager, FirstName, Surname, Annualsalary
FROM Department, Employee
WHERE Department.Manager=Employee.EmployeeID
AND Department.DepartmentID=Employee.DepartmentID;
和
SELECT DepartmentID,Count(Employee.EmployeeID) as NumberOfEmployee
FROM Employee
GROUP BY Employee.DepartmentID;
不知道怎么并在一起 展开
现在是用
SELECT Manager, FirstName, Surname, Annualsalary
FROM Department, Employee
WHERE Department.Manager=Employee.EmployeeID
AND Department.DepartmentID=Employee.DepartmentID;
和
SELECT DepartmentID,Count(Employee.EmployeeID) as NumberOfEmployee
FROM Employee
GROUP BY Employee.DepartmentID;
不知道怎么并在一起 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询