結果 : sql query to find date difference between two consecutive rows