Skip to content

Tag: sliding-window

Find start and end dates when one field changes

I have this data in a table When ever the value in FIELD_D changes it forms a group and I need the min and max dates in that group. The query shoud return The examples that I have seen so far have the data in Field_D being unique. Here the data can repeat as shown, First it is “N” then