
SELECT B.OrderSourceName,A.ID,A.CustomerId,A.OrderSourceId,A.CreateTime,A.UpdateTime,A.LazadaOrderID,A.LazadaOrderItemID,A.Details,A.SellerSKU,A.LazadaSku,A.Amount,A.VATAmount,A.WHTAmount,A.WHTIncludedInAmount,A.[StateMent],A.PaidStatus,A.OrderItemStatus,A.ShippingProvider,A.ShippingSpeed,A.ShipmentType,A.Reference,A.Comment,A.PaymentRefId,A.FeeName,A.TransactionDate,A.TransactionType,A.TransactionNumber
FROM RB_Lazada_TransactionDetail(NOLOCK) A INNER JOIN RB_OrderSource B(NOLOCK) ON A.OrderSourceId=B.ID
WHERE A.CustomerId=1 AND TransactionDate>='2023-08-10' AND TransactionDate<='2023-08-30' and OrderSourceId=5289 and FeeName like '%Sponsored%' and Comment like '%Gmv_top_up%'
ORDER BY TransactionDate ASC
历史问题,需要调研及确认需求,然后转需求