/ / / decode(to_char(buydate,'D') ,1,7,2,1,3,2,4,3,5,4,6,5,7,6,to_char(buydate,'D'))