結果 : sql group consecutive rows with same value