| Author: Ritesh N. Jain 28 Aug 2008 | Member Level: Gold | Rating: Points: 4 |
I assume the final outout should be Column B C D and not A B C as you mentioned above.
Try this Query
UPDATE Table3 SET D = (CASE D IS NOT NULL THEN 1 ELSE 0 END) FROM Table1 INNER JOIN Table2 ON Table1.A = Table2.A LEFT OUTER JOIN Table3 ON Table2.B = Table3.B AND Table2.C = Table3.C
GO
SELECT B,C,D FROM Table3
|
| Author: http://venkattechnicalblog.blogspot.com/ 31 Aug 2008 | Member Level: Diamond | Rating: Points: 2 |
Its confusing and am not clear about your query.
Regards, Venkatesan Prabu. J http://venkattechnicalblog.blogspot.com/
|