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 |
|
sqlilliterate
Starting Member
40 Posts |
Posted - 2009-07-28 : 14:41:22
|
| Hello... Please help me forming a select query which returns my desired output...Table 1id name----------- -----1 Name11 Name112 Name22 Name214 Name4Table 2id Div----------- -----1 div11 div121 div132 div23 div3My expected output is...id name Div----------- ------- -----1 Name1 div11 Name12 div121 NULL div132 Name2 div22 Name22 NULL3 NULL div34 Name4 NULLYour suggestions would immensely help me.Thanks |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-07-28 : 14:47:28
|
Your sample data shows the possibility to compare the end of the name with the end of the Div.But I fear that this possibility isn't given by the real data - right? No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|