Need to compare 2 dates -


i need compare 2 dates/time stamps , see if within 10 minutes of each other in sql. if within 10 minutes of each other, not want data output in. if outside of 10 minutes, output data.

example: if event 1 occurs on saturday 9/10/2017 10:00:00, , event 2 occurs on saturday 9/10/2017 10:00:09, not want data queried.

if event 1 occurs on saturday 9/10/2017 10:00:00, , event 2 occurs on saturday 9/10/2017 10:00:11, want data queried.


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -