I am using the following SQL statement to get the total Amount for each company.
The result only shows a few companies. I need ll companies to be returned even if the aggregate is null or zero. How do I achieve this? Should I do an outer join on a select that selects just company or is there an easier methos?
SELECT [Company],Sum(Amount) As Aggregate FROM Table_Pivot) Group By [Company]