If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > SQL JOIN syntax

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-05-11, 12:46
dweb77 dweb77 is offline
Registered User
 
Join Date: Sep 2011
Posts: 1
SQL JOIN syntax

ISSUE IS SOLVED

-----------------

I think this is an easy one...I need help with the 'JOIN' statement (or the appropriate statement to connect data from two tables).

I have the following separate statements that work to get me the data I want from each of the two separate tables.

From the ads table:

SELECT DISTINCT id , school
FROM ads

From the cb table:

SELECT title, link FROM cb

I want to connect the two when the column 'id' that is in the ads table = the column cb_id that is in the cb table.

Any help here?

Thanks

-------

ISSUE IS SOLVED

Last edited by dweb77; 09-05-11 at 14:33.
Reply With Quote
  #2 (permalink)  
Old 09-10-11, 09:05
subhbwn subhbwn is offline
Registered User
 
Join Date: Mar 2011
Posts: 4
Sql joining

You may solve your problem with sql inner joining. You can follow this link Sql inner join - SQL tutorials | w3resource
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On