I am using mysql and my rows are as follows
name type
Alex Bank Tranfer
Alex Easy
Alex Sec
Alex Easy
Alex Bank Tranfer
Alex Sec
I want the results to be like
Alex Bank Tranfer
Alex Bank Tranfer
Alex Easy
Alex Easy
Alex Sec
Alex Sec
GROUP BY
clause get the single distinct rows.
What could be the sql for it?
I am using laravel framework if anyone knows how to do it in laravel will be appreciated.