By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,363 Members | 2,143 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,363 IT Pros & Developers. It's quick & easy.

Concatenate two tables

100+
P: 111
hi all,

I am having two tables with same number of rows and datatype like this,

Table1

Item

1
2
3
4
5


Table2

Item

1
2
3
4
5

I want to join this two table like this

Item1 Item2
1 1
2 2
3 3
4 4
5 5


There is no check condition.

Anybody help me
Apr 16 '08 #1
Share this Question
Share on Google+
1 Reply


amitpatel66
Expert 100+
P: 2,367
hi all,

I am having two tables with same number of rows and datatype like this,

Table1

Item

1
2
3
4
5


Table2

Item

1
2
3
4
5

I want to join this two table like this

Item1 Item2
1 1
2 2
3 3
4 4
5 5


There is no check condition.

Anybody help me
Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT Item1,Item2 FROM table1 t1, table2 t2 WHERE t1.item1 = t2.item2
  3.  
  4.  
Apr 16 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.