nombre nit colum_alias1 colum_alias2 total_alias
--------------------------------------------------------------------
nombre1 1 1,500 3,000 ?
nombre2 2 2,000 4,000 ?
--------------------------------------------------------------------
total_columns_alias ? ? ?
I keep thinking about this query, I would like to help me decipher the code to add the previous query of the alias columns and generate another query and get the totals by columns and by rows. I tried it with CUBE AND ROLLUP AND CROSSTAB. thanks