i need to query a client database to list the clients that have attended a certain number of sessions. This includes listing clients that have attended 3, 6 or 9 sessions. Each client has a clientid and if a session is attended then there will be a contactid created in the contact table. A client can have many contacts attributed to it. The outcome in the contacts table is set to "attend" if the client turns up for a session.