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 |
|
knockyo
Yak Posting Veteran
83 Posts |
Posted - 2007-02-05 : 10:13:36
|
I have one SQL statement, i want to display the result that both of the table with NOT MATCH result, is that possible?For example:TABLE 1 TABLE 2-------------- -------------------ID NAME AGE ID School 1 abc 12 1 Primary YYY2 def 14 2 University xxx 3 Secondary oooI just want display the result which ID = 3Thanks  |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-02-05 : 10:15:45
|
| [code]Select t1.*from Table1 t1 LEFT JOIN Table2 t2on t1.[ID] = t2.[ID]where t2.[ID] is NULL[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
knockyo
Yak Posting Veteran
83 Posts |
Posted - 2007-02-05 : 19:10:29
|
| it works, thanks Harsh... :D |
 |
|
|
|
|
|