Todd,

I suppose that would require a little more work. After re-reading your 
question, it seems you're just interested in generating the previous month's 
records i.e. if you run the report on the 5th of March, you only want to get 
the report for the month of February that has 28 or 29 days. Is that correct?

You also mentioned you're scheduling a web report. How is the web report 
generating the records from remedy? Is the report using Remedy Java API for 
instance or is it running SQL directly at the remedy database? Let us know how 
your web report is passing the query to remedy and we should be able to help 
further.

Regards,
Chike


From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Arner, Todd
Sent: Wednesday, August 12, 2015 12:47 PM
To: [email protected]
Subject: Re: Query question

**
Thanks Chike and John for your responses.  Unfortunately, I need to be exact 
for the number of days In each month and was hoping there is a query that would 
do that calculation rather than having to write a separate query for each month.

Thanks,
Todd
From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Agu, Chike U
Sent: Wednesday, August 12, 2015 11:14 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: Query question

**
Hi Todd,

Try this:
'Create Date' >= ($TIMESTAMP$ - 2678400)

2678400 is in seconds ( 3600 seconds * 24 hours * 31 day in a month)

Regards,
Chike

From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Arner, Todd
Sent: Wednesday, August 12, 2015 10:54 AM
To: [email protected]<mailto:[email protected]>
Subject: Query question

**
I am trying to schedule a web report to run monthly that will pull in all 
records that were created in the previous month and not sure how to format the 
query.   Is there a way to set up a query in Remedy that will pull all the 
records created in the previous month?  I appreciate any help you can provide.

ARS 8.1
ITSM 8.1
MS SQL 2008 R3

Thanks,
Todd
________________________________
The information contained in this communication may be confidential, is 
intended only for the use of the recipient(s) named above, and may be protected 
under state or federal law. If the reader of this message is not the intended 
recipient, you are hereby notified that any dissemination, distribution, or 
copying of this communication, or any of its contents, is strictly prohibited. 
If you have received this communication in error, please forward the 
communication to [email protected]<mailto:[email protected]> immediately and 
destroy or delete the original message and any copy of it from your computer 
system. If you have any questions concerning this message, please contact the 
sender.
_ARSlist: "Where the Answers Are" and have been for 20 years_

This email is confidential and subject to important disclaimers and conditions 
including on offers for the purchase or sale of securities, accuracy and 
completeness of information, viruses, confidentiality, legal privilege, and 
legal entity disclaimers, available at 
http://www.jpmorgan.com/pages/disclosures/email
_ARSlist: "Where the Answers Are" and have been for 20 years_
_ARSlist: "Where the Answers Are" and have been for 20 years_

This email is confidential and subject to important disclaimers and conditions 
including on offers for the purchase or sale of securities, accuracy and 
completeness of information,  viruses, confidentiality, legal privilege, and 
legal entity disclaimers, available at 
http://www.jpmorgan.com/pages/disclosures/email

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to