943,970 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1659
  • VB.NET RSS
Sep 7th, 2006
0

..joining 2 tables?=A tuf one....can U crack this ?

Expand Post »
Listen, I 've 2 tables of the following nature :

Table 1
---------

col1 | col2 | col3 |
--------------------------------------------------------
1 name1 xxxxxxxxxx
1 name1 ssssssssssss
1 name1 rrrrrrrrrrrrrr
2 name1 qqqqqqqqqq
2 name1 eeeeeeeeee

and so on........


Table 2
=======

col1 | col2 | col3
------------------------------------------------------
1 name1 1111111111
2 name1 2222222222

Now , I would like to join these 2 tables.....

What kind of a record selection formula do I write ???


Any help.......is welcome.....

Bye.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jaay is offline Offline
5 posts
since Aug 2006
Sep 7th, 2006
0

Re: ..joining 2 tables?=A tuf one....can U crack this ?

SELECT * FROM Table1 INNER JOIN Table2 on TABLE1.col1 = TABLE2.col2

* will selct all fields, if you want certain fields, do TABLE1.col1, TABLE2.col2

Does this Help??
Reputation Points: 8
Solved Threads: 6
Posting Whiz in Training
extofer is offline Offline
239 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: How do I store Unique Values to More than One Same Names in Database using VB.NET
Next Thread in VB.NET Forum Timeline: Infinite closing loop... HELP!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC