Click here to Skip to main content
15,904,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the use of CHECKSUM_AGG in sql server ? How it can be used

Kindly give one exmple regarding this
Posted

1 solution

 
Share this answer
 
Comments
anurag19289 7-Nov-13 10:44am    
that is not clear...give me your own example
phil.o 7-Nov-13 10:59am    
What exactly is not clear? I can't imagine a better way to explain it than the link I provided.
What don't you understand?
anurag19289 7-Nov-13 11:21am    
i tried this :

create table checksumcheck
(
value int
)

insert into checksumcheck
select 13
union all select 23
union all select 45
union all select 55
union all select 66

SELECT CHECKSUM_AGG(CAST(value AS int))
FROM checksumcheck

--i got o/p =66
--now how this 66 is the output.
--is it random

--when i update any one column .the o/p changes.
--Where this checksum_agg can be useful ? In what scenario ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900