I have two operations for SQL (which are working properly, seperately):
SELECT SUM(Salary) AS StutorSum
FROM Stutor;
SELECT SUM(Salary) AS StudentAssistentSum
FROM StudentAssistent;
`
But the problem is that I cannot combine them. Eventually I want three columns as a result:
- Column with the StutorSum
- Column with the StudentAssistentSum
- Column with the total of both
However I cannot make this happen, I tried a lot of things, searched on the internet, but nothing worked.
Could anyone help me?
Regards, Joren