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 |
sureshkumar
Starting Member
11 Posts |
Posted - 2007-01-18 : 08:02:08
|
Hi All,I have Two tablesTable Name : Test1Name CodeA 1B 2Table Name : Test2Name CodeA 3B 4I need to display the record in which any name or code not available in test2 table to be displayed as result IN the case My result A 1B 2 A 3B 4Pls help mebye |
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-01-18 : 08:11:42
|
[code]Select [Name], Code from Test1UnionSelect [Name], Code from Test2[/code]There seems to be conflict in what you are asking and what you are showing as expected output.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-01-18 : 09:32:02
|
Also, this is the forum for WORKING SCRIPTS only.Peter LarssonHelsingborg, Sweden |
|
|
|
|
|