update T set 是否停權= 'Y' from ( select T2.總金額,T2.* from ( --先整理玩家訂單總金額 select 玩家ID,sum(金額) 總金額from 訂單T1 group by 玩家ID ) T1 left ...
確定! 回上一頁