I have 2 Tables: Table A and Table B
Table A has below columns: ID, Name, Address, Mobile_No, DOB ID column in table A is already populated. Rest of the columns are blank.
Table B has below columns: ID, Name, Address, Roll_Number
Table C has below columns: Roll_Number, Mobile_no, DOB
I want to write SQl query to populate Name & Address (from table B) Mobile_no and DOB from Table C corresponding to the ID in Table A.
I tried using the Insert query, but it inserts a new record rather then updating the existing record. I also used the merge into and Update query, but still it enters new record.
Can someone please provide me with a query to sort this issue?