Hi Ibrahem,
use the following Queries, You will get the required output you want
.
Actual and Plan Sales Via Showroom:
Select SHOWROOM, SUM("PLANNED_SALES"), Sum("ACTUAL_SALES")
FROM
(
SELECT PERIOD, SHOWROOM, PLANNED_SALES, NullAs ACTUAL_SALES
From CHILUKV.PLANNED_T P
UNION
SELECT PERIOD, SHOWROOM, NullAs PLANNED_SALES, ACTUAL_SALES
FROm CHILUKV.ACTUAL_T A
)
GroupBy SHOWROOM
ORDERBY SHOWROOM
Actual and Plan Sales Via PERIOD:
Select PERIOD, SUM("PLANNED_SALES"), Sum("ACTUAL_SALES")
FROM
(
SELECT PERIOD, SHOWROOM, PLANNED_SALES, NullAs ACTUAL_SALES
From CHILUKV.PLANNED_T P
UNION
SELECT PERIOD, SHOWROOM, NullAs PLANNED_SALES, ACTUAL_SALES
FROm CHILUKV.ACTUAL_T A
)
GroupBy PERIOD
ORDERBY PERIOD
Best Regards,
Muthu