結果 : sql calculate time difference between two rows postgres