Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Join Two Tables without Common Column

This is a discussion on Join Two Tables without Common Column within the Database General forums, part of the Databases category; How to join the data of two tables which does not have common columns but can be done by using two others tables but How? I have four tables and ...

Go Back   Geeks Talk > Databases > Database General
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Database General Database common Questions

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2009
Junior Member
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ashutosh4567 is on a distinguished road
Join Two Tables without Common Column

How to join the data of two tables which does not have common columns but can be done by using two others tables but How?

I have four tables and wants to extract data only from two tables but they do not have any common column so i have to use other two also because three tables are having the common columns.

Can you please provide the technical details of this its very urgent Please...
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-18-2009
Contributing Member
 
Join Date: Jun 2009
Location: United States
Posts: 71
Thanks: 0
Thanked 5 Times in 4 Posts
CSOOR is on a distinguished road
Re: Join Two Tables without Common Column

Join the tables with common columns with those do not have . E.g. t1 and t2 do not have common columns but t3 and t4 have common columns eachother and with the t1 and t2 . Then just join with t3 with t1 and t4 with t2 and then t3 and t4 , but select the columns from t1 and t2. I hope this might help if i have correctly understood your question. Thanks
Reply With Quote
  #3 (permalink)  
Old 06-23-2009
Contributing Member
 
Join Date: May 2009
Location: Navi Mumbai
Posts: 54
Thanks: 20
Thanked 5 Times in 5 Posts
vcite is on a distinguished road
Arrow Re: Join Two Tables without Common Column

Quote:
Originally Posted by ashutosh4567 View Post
How to join the data of two tables which does not have common columns but can be done by using two others tables but How?

I have four tables and wants to extract data only from two tables but they do not have any common column so i have to use other two also because three tables are having the common columns.

Can you please provide the technical details of this its very urgent Please...
Now you have 4 tables T1, T2, T3, T4. You want to extract data from T2 and T3 which do not have a common column. But say both T2 and T3 have common columns with T1 and T4. In this case you need to use the common columns only in the join condition, but you are not retrieving any data from T1 and T4.

Tell me if this resolves ur issue or that if you need further assistance.
Reply With Quote
Reply

  Geeks Talk > Databases > Database General

« Version info | Dbms »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Join two tables and apply group by clause Geek_Guest SQL 3 06-18-2009 02:53 PM
Outer Join Between Dimension tables Himanshu_sh Data Warehousing 1 03-06-2009 06:40 AM
I want to join (scan) 1000 tables ddkdhar Oracle 1 10-15-2007 06:35 AM
without using joiner transformation n sql override how can we join two tables neelkamal88 Data Warehousing 0 05-15-2007 03:55 AM
can we join two tables with null fields using Jointer Transformation phanimv Data Warehousing 0 04-09-2007 06:18 AM


All times are GMT -4. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved