LeoLionHeart
Programmer
A table is updated every morning via DTS.
I then use this table to update another table. My query is the following
However, if the loginID is not in dim_user then the Email field will be NULL. However, there might previously be a Email in tblPeople (and I want this to stay). Is there a way to only update the Email field where the Email field is null.
Any help would be great.
I then use this table to update another table. My query is the following
Code:
Update tblPeople SET Email = (select b.mail FROM dim_user b WHERE loginID = b.NameLogin)
However, if the loginID is not in dim_user then the Email field will be NULL. However, there might previously be a Email in tblPeople (and I want this to stay). Is there a way to only update the Email field where the Email field is null.
Any help would be great.