daily pastebin goal
93%
SHARE
TWEET

Untitled

a guest Feb 18th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.     CONVERT(VARCHAR(10),FO.dateCreated, 101) AS date,
  3.     SUM(FDL.quantity) AS quantity
  4. FROM FulfillmentDropshipLineitem FDL
  5. LEFT OUTER JOIN FulfillmentDropshipOrder FDO ON FDO.fulfillmentOrderID = FDL.fulfillmentOrderID
  6. LEFT OUTER JOIN FulfillmentOrder FO ON FO.fulfillmentOrderID = FDO.fulfillmentOrderID
  7. WHERE DateDiff(day, FO.dateCreated, getDate()) < 14
  8. GROUP BY CONVERT(VARCHAR(10), FO.dateCreated, 101)
  9. ORDER BY CONVERT(VARCHAR(10), FO.dateCreated, 101)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top