resolvido SELECT MAX(cast(replace(convert(varchar,ltrim(rtrim(valor))),',','.') as float))AS Maximo, MIN(cast(replace(convert(varchar,ltrim(rtrim(valor))),',','.') as float))AS Minimo from[Enops].[dbo].[Tbl_Pulsomedia15_Vazao_Eta_B_Bentes] Where valor <> 'processando' and valor <> 'Perda de Sinal'
Ronaldo Santos
- 85
- 1
- 1
- 6