Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mysql date intervals

Status
Not open for further replies.

eds0n

Technical User
Feb 13, 2007
2
NO
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 record, i.e. 'firefox.exe'. Find the first date, get all the instances of this program for this day, and then do this in interval of 1 days...

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.

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

I need this data to calcuate averages and standard deviation on various process parameters.
 
How about...
SELECT creationdate, processname, count(processname)
FROM tablename
GROUP BY creationdate, processname
ORDER BY creationdate, processname

Is that what you're looking for?

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top