How can I retrieve with a query the first and the last date of a data base?