J
John
I have a query:
Transform Round(Sum(Value)) AS [Sum]
SELECT Modal, market
FROM TAble
GROUP BY Modal, market
PIVOT Company ;
There are more than 20 companies returen from the query. I
want to only list four major company
sum in the columns. I want to put all other companies' sum
into "Other" column. How can I make the following
query work.
Transform Round(Sum(Value)) AS [Sum]
SELECT Modal, market
FROM TAble
GROUP BY Modal, market
PIVOT Company IN ('Company 1','Company 2', 'Company
3', 'Company 4','Other');
??????
Thanks
John
Transform Round(Sum(Value)) AS [Sum]
SELECT Modal, market
FROM TAble
GROUP BY Modal, market
PIVOT Company ;
There are more than 20 companies returen from the query. I
want to only list four major company
sum in the columns. I want to put all other companies' sum
into "Other" column. How can I make the following
query work.
Transform Round(Sum(Value)) AS [Sum]
SELECT Modal, market
FROM TAble
GROUP BY Modal, market
PIVOT Company IN ('Company 1','Company 2', 'Company
3', 'Company 4','Other');
??????
Thanks
John