I want to retrieve staff who attend less than 80% for a meeting type assuming we have 10 meetings per list.Meeting Table:staffID list date------------------------1 A 2013-01-152 B 2013-01-171 B 2013-01-171 A 2013-01-182 B 2013-01-191 A 2013-01-202 C 2013-01-21* 1 - Dan* 2 - JaneWhen the staffID occur 3 times (70%), query will Output:staffName list Participation%------------------------Dan A 70 SELECT a.staffName, b.list, (100 - ((COUNT(c.staffID) * 100) / 10)) AS 'Participation%' from Staff AS a, listType AS b, Meeting AS cwhere a.staffID = c.staffID AND b.list = c.list GROUP BY a.staffName, b.listHAVING COUNT(c.staffID) > 2
Thanks for any help,melon