Relative Content

Tag Archive for sqlsnowflake-cloud-data-platform

I want to make an condition on dates with window functions

I’m trying to calculate the difference between two events where the condition X is happening and I also have the condition that if the events happens in the same day, the second event will take the previous date not the one earlier on that same date. (Does it make sense ?)