User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 402,454 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,985 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 1007 | Replies: 1
Reply
Join Date: Aug 2006
Posts: 5
Reputation: jaay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jaay jaay is offline Offline
Newbie Poster

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

  #1  
Sep 7th, 2006
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: El Paso, TX
Posts: 225
Reputation: extofer is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
extofer's Avatar
extofer extofer is offline Offline
Posting Whiz in Training

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

  #2  
Sep 7th, 2006
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??
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 3:26 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC