Create parents table from children

Hi, 

I would like to create a Parents table from child table because I need to summarize. I Have tried to do in action but I could not create only once 'Description' and Sum the value

I have a child table like this:

IdId controlDescriptionDetail Value
337dc0bab7c10f02GeneralGeneral 150
b0163fcab7c10f02GeneralGeneral 220
a6330f3cb7c10f02GeneralGeneral 310
11e4497ab7c10f02MarketingMarketing 115
e6f9128bb7c10f02MarketingMarketing 210
0737de4ab7c10f02FinanceFinance 120
dcc719b9b7c10f02FinanceFinance 210

This is the output required

 

IdId controlDescriptionValue
dhsksr3b7c10f02General80
5621jsoab7c10f02Marketing25
2452sadb7c10f02Finance30

In SQL it would be like this:

CREATE TABLE Parents AS
SELECT Description, Id Control, SUM(Value) AS SumValue
FROM Child
GROUP BY Description;

thanks

 

0 1 77
1 REPLY 1

Well, show us which actions you have created and their config to be able to provide feedback.

I would add an inline action to an action of "add a new row to another table using values from this row" in the Description column and use a condition to prevent duplicates. The condition would check if there is already a row with the same description

Top Labels in this Space