Hi I have a database storing trip details. There's a parent table which stores the basic trip information and a child table that stores the countries to be visited information.
The query I have at the moment is:
TRANSFORM [Test Child].[Arrival Country] AS country
SELECT [Test Tickets].Locator
FROM [Test Tickets] INNER JOIN [Test Child] ON [Test Tickets].Locator = [Test Child].Locator
GROUP BY [Test Tickets].Locator
PIVOT [Test Child].[Arrival Country];
The problem is that all the countries in the child table are shown as headings and what I want is to have 10 columns Country1 to Country10 displayed as column headings with the country name in the data.
I'm sure there's a simple solution but I can't think of it. Any help will be much appreciated.
-Kevin.