Jump to content

Date Intervals


eds0n

Recommended Posts

Hi!

 

I have a bunch of program information from the process table in a mysql db.

 

The data stored is for instance, creation date, process name, userid (owner of processes ) etc.

 

What I want to do is choose a specific process i.e. 'firefox.exe' from a specific user. Find the first date, get all the instances of this program for this day, and then do this in interval of 1 days... and print it.

 

Any pointers? I've tried this by using creationdate<Date_Add(creationdate, Interval 1 day) for testing, did not work. And still, I want process information from within a specific day. For instance, if the process starts for the first time today at 02:00, I want to see the record within the day -> 24:00.. in that instance that would mean 22 hours forward.

 

Does anyone know if this is possible directly in SQL (MySQL) or using PHP?

 

I need this data to calcuate averages and standard deviation on various process parameters.

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.