It is an SQL question. So you can use SSIS Execute SQL Task.
SQL
-- DDL and sample data population, start
DECLARE @tbl1 TABLE (ID INT IDENTITY PRIMARY KEY, market VARCHAR(30), segment VARCHAR(30), quantity INT);
INSERT INTO @tbl1 (market, segment, quantity) VALUES
('Africa', 'Corporate', 1934),
('Europe', 'Home Office', 4626),
('Europe', 'Consumer', 14144);
DECLARE @tbl2 TABLE (ID INT IDENTITY PRIMARY KEY, market VARCHAR(30), segment VARCHAR(30), quantity INT);
INSERT INTO @tbl2 (market, segment, quantity) VALUES
('Africa', 'Corporate', 1000),
('Europe', 'Home Office', 5000),
('Europe', 'Consumer', 15000);
-- DDL and sample data population, end
;WITH rs AS
(
SELECT market, segment, quantity FROM @tbl1
UNION ALL
SELECT market, segment, quantity FROM @tbl2
)
SELECT market, segment, SUM(quantity) AS quantity
FROM rs
GROUP BY market, segment
ORDER BY rs.market, rs.segment;
Output
+--------+-------------+----------+
| market | segment | quantity |
+--------+-------------+----------+
| Africa | Corporate | 2934 |
| Europe | Consumer | 29144 |
| Europe | Home Office | 9626 |
+--------+-------------+----------+
--- Update ---
If your tables are located on different servers, your SSIS Data flow needs the following:
- OLEDB Source (tbl1), OLEDB Source (tbl2)
- Union All Task
- Aggregate transformation
- OLEDB Destination