• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    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.

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.
 

JonDoe

Newcomer
Joined
Oct 28, 2020
Messages
1
Reaction score
2
Points
0
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
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,615
Reaction score
578
Points
0
Location
Canada
Website
www-947.ibm.com
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.
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 18 18.2%
  • Keep using TSM for Spectrum Protect.

    Votes: 61 61.6%
  • Let's be formal and just say Spectrum Protect

    Votes: 12 12.1%
  • Other (please comement)

    Votes: 8 8.1%

Forum statistics

Threads
31,750
Messages
135,360
Members
21,746
Latest member
NasriSaleh
Top