I have several in data and out date mysql “datetime” values. I need to return total count from given time period.
Ex:
In time Out Time
2012-02-02 10:00 2012-02-02 12:00
2012-02-02 09:00 2012-02-02 14:00
2012-02-02 10:00 2012-02-02 11:00
I need to get total as 3 from 2012-02-02 10:00 to 2012-02-02 11:00
write this query
it will give you count 3