Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.
Good job. I tried last week, but failed. I was trying to do a select within a select, but can't do it for 2 fields at a time. By doing a count like you did, it circumvented that.Something like this combines both:
select c.domain_name,c.schedule_name,count(a.node_name) as NR from client_schedules c left join associations a on a.domain_name=c.domain_name and a.schedule_name=c.schedule_name group by c.domain_name,c.schedule_name order by NR desc