Hi @정우비나전산팀 ,
Welcome to the microsoft TSQL Q&A forum!
I haven't encountered such problems before, so I simply searched, and it seems that there is no relevant information.
From my own understanding, this may be related to the data type of the value returned by sum(). I tried the following code, and it returned the result I expected:
select cast(sum(48.6632) as decimal(6,4))-cast(sum(48.66) as decimal(4,2))
If you have any question, please feel free to let me know.
Regards
Echo
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.