title: How do this consult for refinancing dynamically?
body: <p>I have this table HistoricRefinancing:</p>
  
  <pre><code>id authorization_id refinancing_id
  1     1                  7
  2     3                  7
  3     5                  6
  </code></pre>
  
  <p>I just need this:</p>
  
  <pre><code>id authorization_id refinancing_id
  1     1                  7
  2     3                  7
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>id authorization_id refinancing_id
  3     5                  6
  </code></pre>
  
  <p>How I get the refinancing that contain each authorization?
  I do select * from HistoricRefinancing where (refinancinfg_id = 7) for example, but how do it dynamically?</p>