Forum Moderators: coopster
SELECT max(met.meeting_date), met.ref_num
FROM meetings met
WHERE max(met.meeting_date) < (date_sub( curdate( ) , interval 90 day))
GROUP BY met.ref_num
I get the following error:
'Invalid use of group function'
It doesnt like the WHERE max(met.meeting_date)... statement. The problem is that I cant get the meeting_date within the group by. It works when I delete the WERE criteria...
Im just stuck on this!
thanks,