title: Query data from 3 tables based on values of one common column
body: <p>I have 3 tables of the format</p>
  <ul>
  <li>T1: T1_ID, Reference, ...</li>
  <li>T2: T2_ID, Reference, ...</li>
  <li>T3: T3_ID, Reference, ...</li>
  </ul>
  <p>I want to print the output as a table consisting of 3 columns T1_ID, T2_ID an T3_ID showing the ID's based on the values of the column 'Reference' which are common to all the three tables.</p>