类似于这里的问题: http ://forums.asp.net/t/1580379.aspx/1 我正在尝试将常见单元格合并到一个以逗号分隔的单元格中,但是通过内部连接。
我的 SQL 是:
SELECT DISTINCT tb_Order.OrderNumber, tb_Order.OrderId,
tb_Order.orderDate, tb_Order.OrderTotal,
tb_OrderStatus.OrderStatus, tb_Order.GroupOrderId,
tb_Venue.Title AS Venue
FROM tb_Order INNER JOIN tb_OrderItem ON tb_Order.OrderId = tb_OrderItem.OrderId
INNER JOIN tb_Show ON tb_OrderItem.ShowId = tb_Show.showId
INNER JOIN tb_OrderStatus ON tb_Order.OrderStatusId = tb_OrderStatus.OrderStatusID
INNER JOIN tb_Venue ON tb_Show.VenueId = tb_Venue.id
WHERE (tb_Order.OrderId = 705)
我需要 [venue] 以逗号分隔,例如:
"Interactive Seating Chart Advanced, Interactive Seating Chart Mode Multi-Click"