Join two tables using a medicore relational table : <p>I have three tables</p>

<p>table1</p>

<p><a href="https://i.stack.imgur.com/Q4TJW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q4TJW.png" alt="enter image description here"></a></p>

<p>table2</p>

<p><a href="https://i.stack.imgur.com/XudWX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XudWX.png" alt="enter image description here"></a></p>

<p>table3  (This is the relational table of table1 and table 2)</p>

<p><a href="https://i.stack.imgur.com/7Ebsk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7Ebsk.png" alt="enter image description here"></a></p>

<p>How can I join table1 and table2 using table3 ? I need the following output</p>

<p>What will be the sql?</p>

<p><a href="https://i.stack.imgur.com/mt40n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mt40n.png" alt="enter image description here"></a></p>
