title: How to Fetch record from another table which is having multiple record for same id?
body: <p>I have table structures as follows</p>
  
  <pre><code>table-1
  -------
  id
  name
  
  
  table-2
  --------
  imageId
  id ( reference of table1.id)
  image
  </code></pre>
  
  <p>and table1 has the following record</p>
  
  <pre><code>id     name 
  1      A
  2      B
  3      C
  </code></pre>
  
  <p>Table 2 has</p>
  
  <pre><code>imageId      id          image
  1             1         image1.jpg
  2             1         image2.jpg
  3             2         image3.jpg
  </code></pre>
  
  <p>i.e, table1.id has many images in table2, now i need to select the record and its corresponding images(multiple images for same id), like</p>
  
  <pre><code>id   name       image
  1     A         image1.jpg,image2.jpg
  2     B         image3.jpg
  </code></pre>