I have two tables as following
Table products
-product_id-        -categorie ids-
  1                   2,4,5,6
  2                   1,4,3
  4                    3,5
Table categories
c-category_id-       -(catname)-
  1                  cat1
  2                  cat2
  3                  cat3
  4                  cat4
  5                  cat5
  6                  cat6
I need result in this format
-product_id-        -categories-
  1                  cat2
  1                  cat4
  1                  cat5
  1                  cat6
  2                  cat1
  2                  cat4
  .                    .
  .                    .
  .                    .
 
     
    