Jump to content

MySQL "JOIN" Statement Help


ds111

Recommended Posts

Hello!

I have the following two tables:

table1:

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

| RID      |    NAME  |

| 1        |      Bob      |

| 2        |      Mark    |

| 3        |      Sue      |

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

table2:

 

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

| RID      |    RID2      |

| 1        |      2            |

| 2        |      3            |

| 1        |      NULL      |

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

 

I need an SQL Statement that will print out the following:

 

RID: 1  NAME: Bob  RID2: 3  NAME: Sue

 

Can you help me construct this statement?

 

Link to comment
https://forums.phpfreaks.com/topic/194561-mysql-join-statement-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.