When you do a left join in mysql you get results that look something like this (assume we have a customer table and an order table)
| Customer ID | Order ID |
| 1 | 1
| 1 | 2
| 2 | 3
It can be observed that If a customer has more than 1 order the customer data is duplicated ( in this case the order id 1 is returned twice.)
Is there any way to only retrieve each customer once and still get all matching orders using mysql alone (Ie without some sort of code library/framework automatically converting the data into a 3D array or something similar)