SQL Project Planning

  • Asked to answer
    + 1 comment

    My code will work for any case. I think people are complicating this. Valid start dates are all start dates filtered out with any end dates that match. Valid end dates are all end dates filtered out with any start dates that match. Once you realize this, the solution is simply creating a list of start dates filterd out by end dates that match and then attaching the min valid end date > that valid start date. row_number() is not necessary.