• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Previous date and time

moon-buddy

ADSM.ORG Moderator
#1
Does someone know the right syntax for this? Tried other variations.

Trying:

select node_name from events where status='Failed' and (scheduled_start>({'2018-06-02 08:00:00'}-1 day) and scheduled_start<('2018-06-02 08:00:00'))

to get failed backups between the two dates of 2108-06-01 and 2018-06-02.

Fails on the date structure: An expression with a datetime value or a labeled duration is not valid.
 

marclant

ADSM.ORG Moderator
#2
I think you can only do math with the date if you specify current_timestamp or a field name.

Try this instead:
select node_name from events where status='Failed' and (scheduled_start+1 day>(('2018-06-02 08:00:00')) and scheduled_start<('2018-06-02 08:00:00'))
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 12 15.8%
  • Keep using TSM for Spectrum Protect.

    Votes: 48 63.2%
  • Let's be formal and just say Spectrum Protect

    Votes: 9 11.8%
  • Other (please comement)

    Votes: 7 9.2%

Forum statistics

Threads
31,344
Messages
133,509
Members
21,469
Latest member
guidocaffa
Top