Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
vishal_114
Starting Member
1 Post |
Posted - 2010-08-26 : 09:30:56
|
I have 2 tablestbl1 tbl2Id name Id surname------------ --------------1 abc 2 xyzI want output likeId name surname1 abc nullPlease help me. |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-08-26 : 11:49:37
|
[code]select t1.Id,t1.name,t2.surnamefrom tbl1 t1left join tbl2 t2on t2.Id= t1.Id[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|