悲
悲酥清风`
Unregistered / Unconfirmed
GUEST, unregistred user!
[!]
SELECT DepartmentID, HRTrainCurriculumID, COUNT(EmployeeID) AS Qty,
SUM(HRTrainFee) AS Money, HRTrainCurriculumAddress,
HRTrainCurriculumBeginDate, HRTrainCurriculumEndDate, HRTrainCurriculumTime,
HRTrainCurriculumName
FROM HRTrainMFee
GROUP BY DepartmentID, HRTrainCurriculumID, HRTrainCurriculumAddress,
HRTrainCurriculumBeginDate, HRTrainCurriculumEndDate, HRTrainCurriculumTime,
HRTrainCurriculumName
*****************************以上是对的
SELECT DepartmentID, HRTrainCurriculumID, COUNT(EmployeeID) AS Qty,
SUM(HRTrainFee) AS Money, HRTrainCurriculumAddress,
HRTrainCurriculumBeginDate, HRTrainCurriculumEndDate, HRTrainCurriculumTime,
HRTrainCurriculumName,[red] HRTrainUseCoFee[/red]
FROM HRTrainMFee
GROUP BY DepartmentID, HRTrainCurriculumID, HRTrainCurriculumAddress,
HRTrainCurriculumBeginDate, HRTrainCurriculumEndDate, HRTrainCurriculumTime,
HRTrainCurriculumName, [red]HRTrainUseCoFee[/red]
**********以上加入了HRTrainUseCoFee布尔字段就出错
SELECT DepartmentID, HRTrainCurriculumID, COUNT(EmployeeID) AS Qty,
SUM(HRTrainFee) AS Money, HRTrainCurriculumAddress,
HRTrainCurriculumBeginDate, HRTrainCurriculumEndDate, HRTrainCurriculumTime,
HRTrainCurriculumName
FROM HRTrainMFee
GROUP BY DepartmentID, HRTrainCurriculumID, HRTrainCurriculumAddress,
HRTrainCurriculumBeginDate, HRTrainCurriculumEndDate, HRTrainCurriculumTime,
HRTrainCurriculumName
*****************************以上是对的
SELECT DepartmentID, HRTrainCurriculumID, COUNT(EmployeeID) AS Qty,
SUM(HRTrainFee) AS Money, HRTrainCurriculumAddress,
HRTrainCurriculumBeginDate, HRTrainCurriculumEndDate, HRTrainCurriculumTime,
HRTrainCurriculumName,[red] HRTrainUseCoFee[/red]
FROM HRTrainMFee
GROUP BY DepartmentID, HRTrainCurriculumID, HRTrainCurriculumAddress,
HRTrainCurriculumBeginDate, HRTrainCurriculumEndDate, HRTrainCurriculumTime,
HRTrainCurriculumName, [red]HRTrainUseCoFee[/red]
**********以上加入了HRTrainUseCoFee布尔字段就出错