結果 : sql select data before a date