title: how to get data from relational tables (many to many)
body: <p><a href="https://i.stack.imgur.com/BLej9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BLej9.png" alt="enter image description here"></a></p>
  
  <p>I have these three main tables <strong>Microdisenos</strong>, <strong>competencias</strong> and <strong>resultados</strong>.</p>
  
  <p>My problem is this: I want to know what are the <strong>resultados</strong> that belong to the <strong>competencias</strong> of a <strong>microdisenos</strong>.</p>
  
  <p>I know how to do it when relationships are one to many, but in this case it is many to many and I do not know how to handle those intermediate tables.</p>
  
  <p>Thanks for your help.</p>