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.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 problem in query

Author  Topic 

mahmoud83_2003
Starting Member

1 Post

Posted - 2008-09-11 : 05:11:40
i have two table like the following:
name course
------- ---------
mahmoud c++
osam java

and the second column as the following:
name course1
--------- ---------
mahmoud db
osama c#
najeeb vb.net
yahya xml

please help me to make the following result
name course course1
--------- ---------- ------------
mahmoud c++ null
osama java null
mahmoud null db
osama null c#
najeeb null vb.net
yahya null xml

thank you

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-09-11 : 05:20:24
use FULL OUTER JOIN between the 2 tables


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -