SELECT
count(distinct req.requirementid),
req.requirementid,
org.organizationid,
req.locationofposting,
org.registereddate
FROM OrganizationRegisteredDetails AS org,
RequirementsDetailsforOrganization AS req
WHERE org.organizationid = req.requirementid
ORDER BY
org.RegisteredDate desc
这向我显示了错误:
选择列表中的“RequirementsDetailsforOrganization.RequirementID”列无效,因为它既不包含在聚合函数中,也不包含在 GROUP BY 子句中。
如何在此查询中执行 'order by org.RegisteredDate desc' ....
请帮帮我.....??????