The Base Table:
Someid | SomeName
_______________________________
1 | Name -,#
2 | Something else ,-'
Desired Output, preferably in a in view:
Alias for SomeName = SomeAlias
SomeAlias
________________
name
somethingelse
So my question is how to create a view that removes all funky characters and spaces (Not numbers) and changes everything to lower case.
I do not want to alter the SomeName column or entries in any way.
I am using SQL Server 2014
EDIT:
For the sake of any pseudo Code:
Base table =
SomeTable
Output Table =
SomeView