I have a table the fields are Id1, ID2, Points1, Points2. I have another table that has the columns Id1, Id2, Address1, address2, city 1, city2, state1, state2. I have to update the pointsA and PointsB column based on how many of the columns in the second table are filled meaning they dont have null. Ex
Table 1
ID1 ID2 Points 1 Points2
1 2 2 0
Table 2
ID1 ID2 Address1 address2 city 1 city2 state1 state2.
1 2 a1 null null null s1 null
How can I achieve this in sql server 2008?
Thanks
1 Answer