ADSM-L

Re: timestamps in select

2004-01-08 09:39:33
Subject: Re: timestamps in select
From: "Warren, Matthew (Retail)" <Matthew.Warren AT POWERGEN.CO DOT UK>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 8 Jan 2004 14:39:03 -0000
Thanks for the replies, although it has now become a fairly pointless
exercise as large swathes of client backup info seems not  to be logged
in the summary table...

Dsmaccnt.log it is then...

                -----Original Message-----
                From: Shannon Bach <SBach AT MGE DOT COM>@EME 
                Sent: Thursday, January 08, 2004 1:51 PM
                To: ADSM-L AT VM.MARIST DOT EDU
                Subject: Re: timestamps in select


                Query I use this for an events report that need a window
of time, maybe
                you could use something like this;
                Q EV * * BEGIND=TODAY-1 ENDD=TODAY BEGINT=04:00 -
                         BEGINT=16:00   ENDT=07:30 -
                         F=D

                Shannon



                Madison Gas & Electric Co.
                Operations Analyst - Data Center Services
                e-mail sbach AT mge DOT com




                P Baines <paul.baines AT ECB DOT INT>
                Sent by: "ADSM: Dist Stor Manager"
<ADSM-L AT VM.MARIST DOT EDU>
                01/08/2004 04:32 AM
                Please respond to "ADSM: Dist Stor Manager"


                        To:     ADSM-L AT VM.MARIST DOT EDU
                        cc:
                        Subject:        Re: timestamps in select


                Hi Matthew,

                something like this may help you:
                ....where cast((current_timestamp - start_time)hours as
integer) <= 4


                Cheers,
                Paul.

                -----Original Message-----
                From: ADSM: Dist Stor Manager
[mailto:ADSM-L AT VM.MARIST DOT EDU]On Behalf Of
                Warren, Matthew (Retail)
                Sent: 08 January 2004 11:24
                To: ADSM-L AT VM.MARIST DOT EDU
                Subject: timestamps in select


                                Hallo,

                I am using the following select statement;

                select entity,((sum(bytes)/1024)/1024) as MB from
summary where entity
                in (select node_name from nodes where domain_name like
'DM%') and
                start_time>timestamp(current_date - 1   days) and
activity='BACKUP'
                group by entity


                I would like to be able to specify a period of hours
preceding the
                current date/time, rather than a whole number of days [
                timestamp(current_date - 1   days)  ]. My SQL's not so
hot, if anyone
                could show me how to do it I would be very grateful.

                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



                Any e-mail message from the European Central Bank (ECB)
is sent in good
                faith but shall neither be binding nor construed as
constituting a
                commitment by the ECB except where provided for in a
written agreement.
                This e-mail is intended only for the use of the
recipient(s) named above.
                Any unauthorised disclosure, use or dissemination,
either in whole or in
                part, is prohibited.
                If you have received this e-mail in error, please notify
the sender
                immediately via e-mail and delete this e-mail from your
system.



                 - att1.htm << File: att1.htm >> 

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