Find any name change in the history.

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
  Id,
  LEFT(
    SUBSTRING(Text, CHARINDEX('@', Text)+1, LEN(Text)),
    PATINDEX(
      '%[^a-z]%',
      SUBSTRING(Text, CHARINDEX('@', Text)+1, LEN(Text))
    )-1
  ) as oldName,
  Text
FROM Comments as msq
WHERE Id = 246568

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results