Skip to main content

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'

SELECT MAX(cast(replace(convert(varchar,ltrim(rtrim(valor))),',','.') as float)) AS Maximo, 
       MIN(cast(replace(convert(varchar,ltrim(rtrim(valor))),',','.') as float)) AS Mínimo 
From [Enops].[dbo].[Tbl_Pulsomedia15_Vazao_Eta_B_Bentes] 
Where valor <> 'processando'  and valor <> 'Perda de Sinal'

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'

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 Mínimo 
From [Enops].[dbo].[Tbl_Pulsomedia15_Vazao_Eta_B_Bentes] 
Where valor <> 'processando'  and valor <> 'Perda de Sinal'
Fonte Link

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'