Hi Matt! Im not sure what you looking for. But maybe this helps you... Replace YOUR LTOCLASS NAME with the real Device class name.
select stgpool_name,count(*) as "Maxscratch" from volumes where devclass_name='YOUR LTOCLASS NAME' /Christian -----Ursprungligt meddelande----- Fran: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] Warren, Matthew (Retail) Skickat: den 16 januari 2004 13:03 Till: [EMAIL PROTECTED] Amne: SQL query Hallo TSMers, I think I've mentioned before, my SQL's not so hot. I'm practising all I can, although, I can't seem to crack this one, or others like it; I would like to find out (with SQL if possible, I could do it via script etc.. easy enough) ; For every stgpool that has a device class of ultrium1; the stgpool name, the maxscratch value for the stgpool and how many volumes are in that stgpool. I'm incredibly hazy on things like joins, despite having read around the subject, and TSM only implements a cut-down SQL. It is, to get technical, doing my head in. Thanks, Matt. ___________________________ Disclaimer Notice __________________________ This message and any attachments are confidential and should only be read by those to whom they are addressed. If you are not the intended recipient, please contact us, delete the message from your computer and destroy any copies. Any distribution or copying without our prior permission is prohibited. Internet communications are not always secure and therefore the Powergen Group does not accept legal responsibility for this message. The recipient is responsible for verifying its authenticity before acting on the contents. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Powergen Group. Registered addresses: Powergen UK plc, 53 New Broad Street, London, EC2M 1SL Registered in England & Wales No. 2366970 Powergen Retail Limited, Westwood Way, Westwood Business Park, Coventry CV4 8LG. Registered in England and Wales No: 3407430 Telephone +44 (0) 2476 42 4000 Fax +44 (0) 2476 42 5432