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 |
|
mysweet
Starting Member
3 Posts |
Posted - 2011-03-19 : 01:50:05
|
| Hi Guru, I have three tables a,b,c respectively i want to join those tables but my requirement is first add a,b tables suppose result is r1 and then b,c tables suppose result is r2 then i want to join those r1 and r2 is it posible? if posible how ? please explain and i have common column in all the tables Thanks in Advancelakshmi Reddy |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2011-03-19 : 03:06:33
|
SELECT *FROM Table1 AS aINNER JOIN Table2 AS b ON b.Col1 = a.Col1INNER JOIN Table3 AS c ON c.Col99 = b.Col45 N 56°04'39.26"E 12°55'05.63" |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-03-19 : 09:35:28
|
[code]SELECT *FROM tableA a INNER JOIN tableB b ON a.common_col = b.common_col INNER JOIN tableC c ON a.common_col = c.common_col[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
mysweet
Starting Member
3 Posts |
Posted - 2011-03-19 : 10:07:04
|
| Hi Guru's,Many thanks, query resolvedThanks Againlakshmi Reddy |
 |
|
|
|
|
|