I got this little sql-statement:
select
NVL(table2.usermail, 'some other mail') user_mail
from
table1, table2
where table1.user = table2.usernr
This works pretty fine but the result isnt the one I need.
Example:
table1.user gives me "KNL\MarkZuckerbeg"
table2.usernr gives me "MarkZuckerbeg"
table1.user = table2.usernr now is the reason I dont get data back.
Any ideas how to solve this?
I tried using INSTR with no results.