
Irena Gofman
New Member
Members

Forum Posts: 2
Member Since:
August 25, 2019
August 25, 2019

Hello, I have 3 tables:
In table 1 I have the sum price of the product that name is 'ORANGE". The number of product is 201619038.
name | number | sum |
orange | 201619038 | 95,608.13 |
In table 2 I have the sum price of the same product that name 'ORANGE" but it appears in two lines. The total result is the same 95,608.13.
name | number | sum |
orange | 96395665 | 91,575.50 |
orange | 967844 | 4,032.63 |
total | 95,608.13 |
In table 3 I have Conversion Table for number of product:
name | the number in table 1 | the number in table 2 |
orange | 201619038 | 96395665 |
orange | 201619038 | 967844 |
The question is: how can I do the merge of table 1 & 2 if I have to get to the result like this:
name | from table 1number | sum | from table 2 number | sum | difference |
orange | 201619038 | 95,608.13 | 96395665 | 91,575.50 | 4,032.63 |
orange | 201619038 | 967844 | 4,032.63 | -4,032.63 |
Thank you in advance

Mynda Treacy
Admin

Forum Posts: 4618
Member Since:
July 16, 2010
July 16, 2010

Hi Irena,
Please see the attached file. However, the sum of 95,608.13 relates to the table from 1number 201619038, not the number in table two; 96395665 and therefore it is on both rows in the final table. There is no logical way you can avoid this for the second row and return a blank, as you have in your example.
Mynda

Answers Post
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Atos Franzon, Lorna Henning
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
Hans Hallebeek: 185
Newest Members:
Appiagyei Kofi Frimpong
Hilary Burchfield
Richie Wright
Adel Kock
Barbara Murray
Doug Milne
Siobhan Stringer
Rob Rooth
Tom Lewis
Jennifer Rodriguez-Avila
Forum Stats:
Groups: 3
Forums: 24
Topics: 6542
Posts: 28639
Member Stats:
Guest Posters: 49
Members: 32829
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —
