Tmin Tmax in one SQL query instead of two separate queries.