jskidd3
jskidd3

Reputation: 4783

MySQL: Select TIMEDIFF values where the difference is greater than x

SELECT TIMEDIFF(start, end) AS difference

The above value would return 00:10:00 if the start and end values were 01:05:00, 01:15:00.

How can I change my SQL statement so that it only selects differences that are greater than 00:05:00?

Upvotes: 1

Views: 1250

Answers (1)

Mihai
Mihai

Reputation: 26784

WHERE TIME_TO_SEC(TIMEDIFF(start, end)) > 300

Upvotes: 3

Related Questions