title: How do I subtract using SQL in MYSQL between two date time values and retrieve the result in minutes or second?
body: <p>I want to subtract between two date time values using SQL in MySQL such that I get the interval in minutes or seconds. Any ideas? I want to run a SQL query that retrieves uses from a database who have logged in like 10 minutes from the time.</p>