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 |
demons
Starting Member
6 Posts |
Posted - 2013-05-28 : 05:25:26
|
HI allRight now, i have 2 tablesTable 1 : WO Item Qty Deadline241 A 8 2012-10-02 00:00:00.000241 A 20 2012-10-01 00:00:00.000241 B 15 2012-10-03 00:00:00.000241 B 30 2012-10-04 00:00:00.000Table 2 :ConNo Item WO QtyCON1 A 241 30CON2 B 241 35CON3 A 241 35CON4 B 241 5I want to show the result as belowConNo Item WO Qty DeadlineCON1 A 241 2 NULL CON3 A 241 35 NULL CON1 A 241 20 2012-10-01 00:00:00.000 CON1 A 241 8 2012-10-02 00:00:00.000 CON2 B 241 15 2012-10-03 00:00:00.000CON2 B 241 20 2012-10-04 00:00:00.000CON4 B 241 5 2012-10-04 00:00:00.000Please show me more instructionThanks |
|
senthil_nagore
Master Smack Fu Yak Hacker
1007 Posts |
Posted - 2013-05-28 : 05:32:08
|
Read about Joins in BOLSenthil Kumar C------------------------------------------------------MCITP - Database Administration SQL SERVER 2008MCTS - Database Development SQL SERVER 2008 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-05-28 : 05:59:08
|
Can you explain your posted result? On what columns the tables are related?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|