Skylar, Thomas and David! This was exactly what I was looking for. Thank you VERY much!!! Kind regards, Eric van Loon AF/KLM Storage Engineering
-----Original Message----- From: ADSM: Dist Stor Manager [mailto:[email protected]] On Behalf Of Skylar Thompson Sent: donderdag 11 december 2014 16:45 To: [email protected] Subject: Re: SQL for highest volume label in library It depends on what you mean by "highest", but assuming you mean lexigraphically highest, this would work: SELECT MAX(volume_name) FROM libvolumes WHERE library_name='foo' On Thu, Dec 11, 2014 at 03:41:23PM +0000, Loon, EJ van (ITOPT3) - KLM wrote: > Hi TSM-ers! > Does anybody know a SQL statement to retrieve the highest volume label of all > tapes in a library? Is it possible with one single SQL query? > Thanks for any help in advance! -- -- Skylar Thompson ([email protected]) -- Genome Sciences Department, System Administrator -- Foege Building S046, (206)-685-7354 -- University of Washington School of Medicine ******************************************************** 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 ********************************************************
