Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GROUP BY Statements

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I seem to be having problems executing a GROUP BY statement in an SQL code. An error message appears saying 'invalid use of group function'.

Here is my SQL code - any suggestions would be gratefully received...

SELECT subjectindex.subjectg, Count(subjectindex.indexl) AS CountOfindexl
FROM (useagelinks INNER JOIN subjectindex ON useagelinks.hit = subjectindex.indexl)
WHERE (((subjectindex.indexl)<>'ZZZ'))
GROUP BY subjectindex.subjectg
ORDER BY Count(subjectindex.indexl) DESC;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top