Jump to content

Compare entries 72 hours apart


JChilds

Recommended Posts

I have a table with three columns: Timestamp, ID, Amount

 

Every hour, new data is written to the table.

The ID always stays the same, but the Timestamp(obviously) and Amount are changing.

 

eg:

2008-06-24 08:00:00     1     100
2008-06-24 09:00:00     1     176
2008-06-24 08:00:00     2     120
2008-06-24 09:00:00     2     134

 

I want to be able to be able to retrieve all the ID's where the amount hasn't changed in the last 72 hours.

 

I have no idea how to approach this, so if anyone could point me in the right direction, I'd appreciate it very much.

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.