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
 General SQL Server Forums
 New to SQL Server Programming
 Select question

Author  Topic 

raysefo
Constraint Violating Yak Guru

260 Posts

Posted - 2006-06-21 : 10:07:30
Hi,

i have 7 tables and i wanna select common datas of [column1] from those tables. How can i do this?

thanks

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-06-21 : 10:08:59
[code]select *
from table1 t1 inner join table2 t2 on t1.column1 = t2.column1
inner join table3 t3 on t1.column1 = t3.column1
. . .
[/code]


KH

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-06-21 : 10:10:28
Learn SQL
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -