After trying with with recursion I have question
I am trying with two table
first table is complain_table
complain product_id
----------------------------------------
Not working - 1
not working 1
not working 1
Loading problem 2
Loading problem 2
second table product_table
Name id
--------------
usb 1
cd 2
Now my desired output is
product complain
-----------------------------------
usb Not working
Not working
Not working
cd Loading problem
Loading problem
GROUP BYand somestring_agguse.