Edit: After trying to use the COALESCE method, I now see a problem when the data is repeated with the same data for each power category. Column 2 - power. 
I created two temporary tables, both with the same table structure. These tables have several columns that can have the same values, and then several columns of values ββthat will have different numbers. Some of them will be NULL in one column, and not null in another. I want all the values ββto be together, and on lines with the same site and installation, I would like the values ββto be combined.
Here is an example of what the two tables might look like, and the result I would expect
TABLE 1:
SITE PLANT VALUE_1 VALUE 2 S1 P1 54 66 S1 P2 43 43
TABLE 2:
SITE PLANT VALUE_1 VALUE_2 S1 P1 33 43 S2 P1 34 22
RESULT:
SITE PLANT t1_VALUE_1 t1_VALUE_2 t2_VALUE_1 t2_VALUE2 S1 P1 54 66 33 43 S1 P2 43 43 NULL NULL S2 P1 NULL NULL 34 22
My initial thoughts would be a complete mix. However, this does not work, because in your select statement you must specify where to get the columns, for example, site and plant; but to select t1.site and t2.site two columns will be created. The closest I received is the request below, however at any time there is a result in S2, which has a site and is not in S1, you get zero values ββfor S1 and S2.
SELECT t1.Site, t1.Plant, t1.Value_1, t1.Value_2, t2.Value_1, t2.Value_2 FROM table1 t1 FULL JOIN table2 t2 ON t1.site = t2.site AND t1.plant = t2.plant