Hi Eric,

i'd suggest "select node_name,count(distinct volume_name) from volumeusage 
group by node_name".
You could also further filter with "where stgpool_name..." or "where 
copy_type='BACKUP'/'ARCHIVE'"

Best Regards,

Stefan Schulz
CANCOM GmbH

CANCOM GmbH
Sitz der Gesellschaft: Jettingen-Scheppach
HRB 10653 Memmingen
Geschäftsführer: 
Ralf Binder, Stefan Fritz, Jens-Peter Gotter, Paul Holdschik, Dirk Kiefer, 
Petra Trost-Gürtner
Diese E-Mail und alle mit gesendeten Dateien sind vertraulich und 
ausschließlich für den Gebrauch durch den Empfänger bestimmt!
This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the addressee!



-----Ursprüngliche Nachricht-----
Von: ADSM: Dist Stor Manager <ADSM-L@VM.MARIST.EDU> Im Auftrag von Loon, Eric 
van (ITOP NS) - KLM
Gesendet: Donnerstag, 11. Juli 2019 15:55
An: ADSM-L@VM.MARIST.EDU
Betreff: [ADSM-L] Number of volumes per client

Hi guys,

I'm looking for a SQL statement to count the amount of volumes used per client. 
Can anybody help me out here?
Thank you very much in advance!

Kind regards,
Eric van Loon
Air France/KLM Storage & Backup
********************************************************
For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its 
employees shall not be liable for the incorrect or incomplete transmission of 
this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286
********************************************************

Reply via email to