您好我想在过去的53周内创建每周从托运人中提取的货物数量,但我完全亏损了!
这就是我所在的地方!
SELECT BILL_NUMBER, LEFT(ACTUAL_PICKUP,10) AS ACTUAL_PICKUP FROM TLORDER
WHERE ORIGIN = 'ROCKMURTN'
AND ACTUAL_PICKUP BETWEEN CURRENT TIMESTAMP - 1 YEAR AND CURRENT TIMESTAMP
ORDER BY ACTUAL_PICKUp