Answers for "sql statement to drop text after character"

SQL
0

sql server rtrim everything after character

SELECT   [FullName]
	    ,LEFT([FullName], CHARINDEX(',', [FullName]) - 1) AS [Surname]
	    ,REPLACE(SUBSTRING([FullName], CHARINDEX(',', [FullName]), LEN([FullName])), ',', '') AS [FirstName]
FROM    Employee
Posted by: Guest on August-04-2020

Code answers related to "sql statement to drop text after character"

Code answers related to "SQL"

Browse Popular Code Answers by Language