jimjamjo1
03-09-2009, 08:10 PM
Heya,
I have a table that looks like the following:
IP - DATETIME
86.11.133.28 - 2009-02-02 23:11:11
23.12.392.1 - 2009-02-03 23:14:11
86.11.133.28 - 2009-02-02 23:18:11
What I would like to do, is find out the difference between the dates, based on IP address. Also, its worth noting that its not a simple difference between Date A and date B, as they may be date C and date D too to add up for that ip address.
What I would like is the results to be something like this:
IP - SECONDS
86.11.133.28 - 420
23.12.392.1 - 0
I have a table that looks like the following:
IP - DATETIME
86.11.133.28 - 2009-02-02 23:11:11
23.12.392.1 - 2009-02-03 23:14:11
86.11.133.28 - 2009-02-02 23:18:11
What I would like to do, is find out the difference between the dates, based on IP address. Also, its worth noting that its not a simple difference between Date A and date B, as they may be date C and date D too to add up for that ip address.
What I would like is the results to be something like this:
IP - SECONDS
86.11.133.28 - 420
23.12.392.1 - 0