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
 join

Author  Topic 

kashyapsid
Yak Posting Veteran

78 Posts

Posted - 2010-04-20 : 06:23:44
is there any process to join two tables which doesn't have any relation i,e the data doesn't coincides with each tables
ex:- table names are T1 & T2 and the column are for Table T1 are 'A','B','C' & for T2 are 'D','E','F' just example

KaShYaP

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2010-04-20 : 06:29:01
Ya you can get cartesian product!

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

kashyapsid
Yak Posting Veteran

78 Posts

Posted - 2010-04-20 : 06:30:09
sry i cant understand @senthil

KaShYaP
Go to Top of Page

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2010-04-20 : 06:31:21
Go through cartesian product in books online!

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2010-04-20 : 06:32:25
Try it you will get cartesian product!

Select a,b,c,d,e,f from t1 inner join t2

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

kashyapsid
Yak Posting Veteran

78 Posts

Posted - 2010-04-20 : 06:34:22
ok i will try

KaShYaP
Go to Top of Page
   

- Advertisement -