Answer the question
In order to leave comments, you need to log in
How to count the number of continuous date intervals given by a set of date intervals that include the entire given interval?
The crux of the matter is as follows.
A table of date intervals is specified, for example
Номер | ДатНач | ДатКнц
1 01.01.15 01.02.15
2 15.01.15 15.03.15
Answer the question
In order to leave comments, you need to log in
SELECT COUNT(*) FROM table WHERE setpoint >= dateset AND setpoint <= dateset
I'll try to clarify the question, for the same example
Номер | ДатНач | ДатКнц
1 01.01.15 01.02.15
2 15.01.15 15.03.15
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question