-3
select a.campo1, b.campo1,replace(replace(b.campo1,'-',''),'.','') as resultado from dbo.tabela1 a, dbo.tabela2 b
where a.campo1 = resultado
I am trying to select above, but it displays error "Message 207, Level 16, Status 1, Line 16: Invalid column name 'result'."
How do I turn "requests" into a valid column?
And what comes to be "requests" since such name is not in the command you posted?
– anonimo
Requests was the original name of the alias resulting from replace, I forgot to edit that part. (And as it is a confidential Lecta I cannot keep the names)
– Alexandre Fernando Borges