select 

case when (money - cashys) > 0 then '앞' 

when (money - cashys) = 0 then '중' 

else '뒤' 

end  as 'DIFF_CHK' ,money,cashys

from mem_Cashs

+ Recent posts