0
I need to convert an Nvarchar field to Float in a survey, and take the highest value.
this function works
SELECT MAX(valor)
from [Enops].[dbo].[Tbl_Pulsomedia15_Vazao_Eta_B_Bentes]
Where valor <> 'processando' and valor <> 'Perda de Sinal'.
but at the time I put max says it is not a sql server function
SELECT Max (cast(valor as nvarchar(200))AS FloatValue)
from[Enops].[dbo].[Tbl_Pulsomedia15_Vazao_Eta_B_Bentes]
would have some way of doing this?