o.Id as [OrderId], o.Status as OrderStatus, p.Id as ProductId, p.Name as ProductName, od.UnitPrice, od.Quantity FROM [Customer] c JOIN [Order] o ON o.CustomerId = c.Id JOIN [OrderItem] od ON od.OrderId = o.Id JOIN [Product] p ON od.ProductId = p.Id ORDER BY o.CreatedTime