combining several records into one

  • Thread starter Thread starter Jenny
  • Start date Start date
J

Jenny

Hi! Suppose I have a table with two text or memo fields, say Country and
City:

[Country] [City]
Belgium Antwerp
Belgium Brussels
Belgium Ghent
Estonia Tallinn
Finland Helsinki
Netherlands Amsterdam
Netherlands The Hague
Poland Gdansk
Poland Warsaw
Spain Barcelona
Spain Madrid
Sweden Gothenburg
Sweden Stockholm

I'd like a query that combines or merges all cities in each country into one
single record, for example like this:

[Country] [Cities]
Belgium Antwerp, Brussels, Ghent
Estonia Tallinn
Finland Helsinki
Netherlands Amsterdam, The Hague
Poland Gdansk, Warsaw
Spain Barcelona, Madrid
Sweden Gothenburg, Stockholm

Can this be done?
 
Back
Top