Jump to content

join table with multiple field entrys?


Thundarfoot

Recommended Posts

I am a noob hre is my sign:  ???

I am trying to join 2 tables. a value from table a matches an id from table b..

this code works however some fields in table a contain multiple values when this happens only the first is returned.

SELECT * FROM tablea LEFT OUTER JOIN tableb ON (tablea.column2 = tableb.id)";

 

sample table a

Column1 | Column2 |

firstentry  10

secondentry 20 30 12

thirdentry 05

 

above code returns joined entrys from table b for id 10, 20, and 05 but not 30 or 12

 

I can modify column 2 or its contents if needed to make this work.

Thank you in advance for your time and any help you can lend.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.