This may help:

http://www.oracleact.com/papers/rollup.html