Ok heres my code
SELECT r.name, COUNT(a.event)/COUNT(e.event) AS total FROM Attendance AS a, Ratio AS r, Event AS e WHERE r.name=a.name GROUP BY r.name
I do this in mysql and the process hangs forever like an infinite loop. I dont know what im doing wrong. I event try adding LIMIT 5 and it still hangs so something is wrong.
Ok ive worked at it and if I take the Event table out of this quey it works that is what seems to make it hang, when I combine Event and Attendance.
SELECT r.name, COUNT(a.event) AS total FROM Attendance AS a, Ratio AS r WHERE r.name=a.name GROUP BY r.name
This works but not what im trying to get.