How to join two tables of sql and concatenate multiple rows into single cell?
The Query which i am using::
SELECT Customers.CustomerName, Orders.OrderID
FROM Customers
LEFT JOIN Orders
ON Customers.CustomerID=Orders.CustomerID;
Output which i got::
CustomerName OrderId
John Doe 101
John Doe 102
John Doe 103
John Doe 104
Expected Output::
CustomerName OrderId
John Doe 101,102,103,104