Skip to content
Advertisement

How to group two table with the same columns doing total of a column value

I have two oracle table with the same columns I want to create a query over those two tables doing total by a column : Table 1 :

Table 2 :

I want to create a select query that allow to have one table with total calculated based on column card_type and date_creation

Query results should be : Table 3 :

Advertisement

Answer

You need to put together with UNION ALL and then GROUP BY :

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