ADSM-L

Re: select command

2004-10-06 12:16:34
Subject: Re: select command
From: "Das, Samiran (IDS ECCS)" <samiran_das AT ML DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Wed, 6 Oct 2004 12:19:01 -0400
Rachel,

Try this select query.

select volume_name from volhistory where
date_time<timestamp(date(current_timestamp),'00:00') and type in
('BACKUPFULL','BACKUPINCR')

Following pdf By Andrew Reibeck is the best place to start with tsm sql.

http://www-dat.lrz.de/dat/8/asys/doc/tsmserv/adsmserv-sql/doc/pdf/adsm_s
ql.pdf

Regards, Samiran Das


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Smith, Rachel
Sent: Wednesday, October 06, 2004 11:31 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: select command


Hi,
 
I am trying to complete a select command to "select volume_name from
volhistory where type='backupfull' and date_time>'today'" which fails
because today is incorrect, can you tell me the correct format. Also
when the above runs successfully, I will require it to use the out but
from the select command to move the media to tost=vault.
 
Any ideas on how to do this or a web site that helps us understand SQL
better?
 
Thanks.. 
--------------------------------------------------------
 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail.     http://www.ml.com/email_terms/ 
--------------------------------------------------------
 

<Prev in Thread] Current Thread [Next in Thread>