I've never asked a question here before, and I'm not very advanced with sql whatsoever beyond simple queries so I apologize if I sound inept, very different from the programming I am used to. But today I am stuck in a unique position trying to solve a problem with no assistance, so I am hoping to get some ideas on here or knowledge.
I have Table A and Table B. They have various different columns except for the two they have in common, ID and phone number. Sometimes, a few rows in Table B will have NULL in the phone number. I need to write something that will select all records from Table A by ID and phone number, look up the same IDs in Table B, and if B's phone number field is NULL it will update it with the phone number from A.
I really hope this makes sense. I had begun writing a loop to try to accomplish this by iteration as I might with my other programming but everywhere I read said SQL was not made to do loops so stay away. I appreciate any input.
Taylor