I want to join a table with another table but i need multiple row values from second table.
Table #1:(orders)
userid order_id
1412 1412_AD_150910
1413 1413_AD_150910
Table #2:(follow_up)
userid date comments called
1412 150910 test comments 1
1412 150911 comments1 0
1413 150912 test 1
Results will be like this:
userid order_id follow_up_details
1412 1412_AD_150910 [{150910,testcomments,1},{150911,comments1,0}]
1413 1413_AD_150910 [{150912,test,1}]
Basically i want to combine rows from second table using userid.
Thanks in advance.