hi i got a small problem can u do favor to me on this?
SELECT `name` , `mytimestamp`
FROM `profile`
WHERE `mytimestamp` between '2012-10-24 05:59:00' AND '2012-10-25 05:59:00'
ORDER BY `name` , `mytimestamp`
the above query gives me list around 3000 records from my table, in my table 100 names are present, for those names several timestamps avail,
now my problem is i have to find a name which has 3 hours gap?
i need to do this from a query itself in mysql……
thx to all!
This query will find you all users that have more than one row in profile table, and interval between these two is bigger than
interval.