
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: 4449
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: Velouria, Wesley Burchnall, Emma Klonowski, Kelly smith
Guest(s) 5
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27291
Member Stats:
Guest Posters: 49
Members: 31913
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —
