<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "All cities"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "All cities"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>All cities</title>
				<description><![CDATA[ Hello,

how is it possible to get all cities with alternatenames in one table?

I tried:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
CREATE TABLE geoname.cities AS
SELECT g.geonameid, g.name AS name, g.country, NULL AS isolanguage, 
        NULL AS ispreferredname
        FROM geoname.geonames AS g 
        WHERE g.fclass = 'P' OR
        g.fcode = 'PPL' OR
        g.fcode = 'PPLA'
UNION
SELECT g.geonameid, a.alternatename AS name, g.country, 
        a.isolanguage, a.ispreferredname
        FROM geoname.geonames AS g INNER JOIN geoname.alternatename AS a 
        ON g.geonameid = a.geonameid
        WHERE g.fclass = 'P' OR
        g.fcode = 'PPL' OR
        g.fcode = 'PPLA';
</pre>
		</div>

But there are also wrong entries. 
For example:
<blockquote>SELECT DISTINCT geonameid FROM cities WHERE name = 'München'&nbsp;
		</blockquote>

results:
2867711
2867712
2867713
2867714
3070456

Anyone any ideas?

Thanks
Andreas]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1270.page#5429</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1270.page#5429</link>
				<pubDate><![CDATA[Tue, 17 Feb 2009 15:57:07]]> GMT</pubDate>
				<author><![CDATA[ Harpagophyt]]></author>
			</item>
			<item>
				<title>Re:All cities</title>
				<description><![CDATA[ Why do you think this is wrong? There is more than one city with the name "München".

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1270.page#5433</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1270.page#5433</link>
				<pubDate><![CDATA[Tue, 17 Feb 2009 20:23:22]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>