Cross tabulations in SQL?

Original text of this message