-
Make other tables embedded or view implementations, for example
choose ...
from
(Select ID, sum (num) as num from test 2 group by ID) as test.
....
choose
Max(iif(OBJECT=' basic salary', salary, 0)) as the basic salary,
Max(iif(OBJECT=' overtime pay', salary, 0)) as overtime pay,
Max(iif(OBJECT=' food subsidy', salary, 0)) as food subsidy.
From testing;
or
Conversion Maximum (Salary)
Select 1 from the test group as the ID.
Pivot object