I am using SQL Server 2016. I have a column A that has values such as C20.1 and C20.2. I just want to remove the postfix values (.1 and .2) and keep C20 only.
Column A
---------
C20
C20.1
C20.2
Output should be like this:
Column B
--------
C20
C20
C20
I tried this SQL statement:
SELECT
REPLACE (ColumnA, '.1', '.2', '')
but this query throws an error when I pass 4 parameters.
