/build/static/layout/Breadcrumb_cap_w.png

Report for assets modified in past X days

I have a subordinate working on cleaning up our software and license assets and software labels in our k1000. I've added a custom field that he flags as he fixes a record/label and I have successfully created a report that will return everything with tthat flag set. But I would like to filter, or at least sort, that down by modified date, so I can just look at the past 7 days of changes, say.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: grayematter 10 years ago
5th Degree Black Belt
0

That will require adding a condition to the where clause in the SQL statement.  the where clause would have

 A77_AH.time > date_sub(current_date(), interval 7 day)

A77_AH is the appropriate Asset_History join.  time is the timestamp field of the update.  You can change the interval to whatever you like.  Check the MySQL documentation for more details, http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_date-add.

 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ