I have a table with equipment failure and resolved date. Until the failure is resolved, entries for each day will show as failed. Once the issue is resolved data will start from the next failure date. Below is an example
I want an output which will give me the first failure time for each resolved timestamp like

I tried to do a left join between Resolved timestamp and failure dates AND take the min but that doesn't work.

