Hi Peter, Thanks for your comments. I just meant that SQL is first deriving the summary statistics (under the covers), then remerging with the original data. I didn't mean to imply that the two processes (data step vs. sql) were identical. Regards, Scott
... View more