Playing around with CHECKSUM_AGG:
select CHECKSUM_AGG ( QTY ) AS CheckSumAgg_QTY, CHECKSUM_AGG ( Distinct QTY ) AS CheckSumAgg_DistinctQTY, sum(QTY) as Sum_QTY
from (
select 4 as qty
union all
select 2 as qty
union all
select 2 as qty
union all
select 2 as qty) T
Till Next Time
Tuesday, April 23, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment