I'm trying to return one row result on a.OrderNumber = b.OrderNumber where table b has multiple lines of service comments. Will I need to concatenate the comments into one field result to prevent multiple rows and how do I do that? Here is what I have.
SELECT a.OrderNumber,
b.Comment,
b.Comment,
b.DATE
FROM Orders a
LEFT JOIN Comments b ON a.OrderNumber = b.OrderNumber
I'm looking for:
OrderNumber Comment
1200 01-01-13 Repair made, 01-02-13 Billed Customer
What I get is:
OrderNumber Comment Date
1200 Repair made 01-01-13
1200 Billed Customer 01-02-13
Here's the result I currently have: