Self Join and Compare dates