I have written a select query to give me the count of portfolio companies for a sector. However, I want to be able to return a count of portfolio companies by sector for multiple sectors. Here is my original query:
SELECT Count(GainEvent_bySector.PortfolioCoName) AS CountofGainEventCET
FROM GainEvent_bySector INNER JOIN PortfolioCompanies ON GainEvent_bySector.PortfolioCoName = PortfolioCompanies.PortfolioCoName
WHERE (((GainEvent_bySector.Sector)="Communications and Enabling Technologies"))
This gives me:
CountofGainLossCET (one sector)
21
I want:
CountofGainLossCET CountofGainLossCMA CountofGainLossDBA
21 25 42
Here is my structure:
Any assistance would be great!!!