I am getting the following error on this query:
Error: you tried to execute a query that does not include the specified expression '...' as part of an aggregate function.
Here is the query:
SELECT DISTINCTROW
TeacherID,
TeacherName,
FeesRequired,
SubTotal
FROM MyQuery
GROUP BY
TeacherID,
TeacherName,
FeesRequired,
SubTotal
HAVING (SubTotal < FeesRequired)
I also tried WHERE, but get other errors.
Help is most appreciated.