Looking for a select command

NJ88210

ADSM.ORG Member
Joined
May 14, 2003
Messages
25
Reaction score
0
Points
0
Website
http
Good Morning
I'm looking for a select command that will show schedules without any node associations. I see a select that will show nodes without schedules, I need the reverse.
 
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
 
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
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.
 
Back
Top