Table name: Table1
The table has 2 columns
Id Name
1 1|admin|[email protected]
2 22|user|[email protected]
From the Name
column I want to fetch the email adress
Result:
Name
[email protected]
[email protected]
Table name: Table1
The table has 2 columns
Id Name
1 1|admin|[email protected]
2 22|user|[email protected]
From the Name
column I want to fetch the email adress
Result:
Name
[email protected]
[email protected]
try this one
select SUBSTRING(name,CHARINDEX('|',name, CHARINDEX('|', name)+1)+1,100) from Table1