mysql - Find intersection time between one date range and one time range -
I am looking for a mysql query that will take a start date / end date and a start time / end time and calculate The time frame (in seconds) that interses the deadline to the time frame.
For example,
the end date of the date: 2011-09-01 from 18:00 to 2011-09-01 19:00:00
Start time to end time: 6 to 8 o'clock
In this case, the amount of time should be 3600 seconds.
MyScall: datatyph
mssql: dethithif
Oracle : DeadTef
Comments
Post a Comment