Skip to content
Advertisement

Oracle Sql: How to add multi sub total in sql?

I want query multi sub total in query sql. How query multi sub total. please help me.

SQL CODE:

Result Query:

But i want add multi sub total in query.

I want Result Query:

How add multi row sub total? Help me please.

Thanks in advance. 😉

Advertisement

Answer

I will post a solution with using the group by rollup extension. Please try this.

Though I think the answer provided Gordon Linoff pointed out is also very good answer and suggestion to this question.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement