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 |
|
seanh1016
Starting Member
14 Posts |
Posted - 2010-10-22 : 19:03:12
|
| is this(or something like this) possible? FROM(ab.column1 + ab.column2) = bc.column3MS SQL 2005Thanks |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2010-10-22 : 23:30:40
|
| SELECT *FROM table1 abINNER JOIN table2 bcON ab.column1+ab.column2=bc.column3 |
 |
|
|
seanh1016
Starting Member
14 Posts |
Posted - 2010-10-23 : 01:12:07
|
| would an outer join also work? SELECT *FROM table1 abLEFT OUTER JOIN table2 bcON ab.column1+ab.column2=bc.column3 |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-10-23 : 01:42:54
|
quote: Originally posted by seanh1016 would an outer join also work? SELECT *FROM table1 abLEFT OUTER JOIN table2 bcON ab.column1+ab.column2=bc.column3
it will work but will return everything from ab regardless of match in bc------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|