0
如何獲取當前月份前三個月內的結果。 我試過使用DATEPART
但沒有成功。SQL - 查詢當前月份前三個星期內的內容
SELECT
,DELIVERY_DATE
,MONTH(GETDATE()) AS ACTUAL_MONTH -- Get the current calendar week of the DELIVERY_DATE
FROM DELIVERY_TABLE
WHERE DELIVERY_DATE --.. is within the first three calendar weeks of the actual month
你通過deliverydate前三個星期最近一個月之內呢? –
是的,正是...... – oldsport