分享至
我有一個creat day and wprk week number ,但我只想顯示Previous week number該如何製作例如:creat day / week number / sales20191101 = W41 / 100020191108 = W42 / 2000<--只想顯示這一個week number的資料20191115 = W43 / 3000
已邀請的邦友 {{ invite_list.length }}/5
MS SQL Script 參考看看.
select top 1 * from TableA where createday < getDate() order by createday desc
IT邦幫忙