P
P
pavuuuk2020-04-15 20:10:40
PostgreSQL
pavuuuk, 2020-04-15 20:10:40

I can't figure out how to calculate departures that follow each other with a break of at least 5 minutes?

There is a flight table, from which you need to select the number of flights that followed EACH OTHER with a break of at least 5 minutes. In this case, the airport of departure departure_airport must be equal to SVO.
5e973fa85aebd927944074.png
5e973fb0eb727790389532.png
It's not clear to me how you can select lines while comparing them with other lines so that the departure time differs by at least 5 minutes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-04-15
@sergey-gornostaev

window function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question