Advertisement
elena1234

Select everything after character ( T-SQL )

Dec 27th, 2021 (edited)
4,755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.13 KB | None | 0 0
  1. SELECT Username, RIGHT(Email, charindex('@', reverse(Email))-1) AS [Email Provider]
  2. FROM Users
  3. ORDER BY [Email Provider], Username;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement