SELECT MAX(TempoParcial100) as TempoP1,MAX(TempoParcial200) as TempoP2,MAX(TempoParcial300) as TempoP3,MAX(TempoParcial400) as TempoP4, MAX(VelocidadeP1) as VelP1,MAX(VelocidadeP2) as VelP2,MAX(VelocidadeP3) as VelP3,MAX(VelocidadeP4) as VelP4, MAX(VelVento) AS VelVento FROM arrancada,piloto,categorias WHERE arrancada.IdPiloto=piloto.IdPiloto and IdCategoria = CodCategoria and IdCategoria=4422;