Still don't think that this solution works, but I just wanted to point out that subequeries don't work for me as the version of MySQL is 4.0.15 and subqueries are supported from version 4.1 upwards.
Thanks ggggus but I don't think he query is correct, when I test it on my data I get an agent appearing and he shouldn't as he has several contacts subscribed to that list (mailinglist '1' in your example).
Hi I would really appreciate some help on this one as I've tried various methods and can't get this to work on MySQL.
Any ideas anyone ?
I have 4 tables: agents, contacts, subscription, mailinglists
agents
ID_AGENT int(11) 0
NAME...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.