<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Looking up city?"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Looking up city?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Looking up city?</title>
				<description><![CDATA[ I am wanting to be able to lookup a city in the database and then display the associated information on the place. I tried the following:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
select name,fcode,admin1 from geoname where name like '%Quebec%' and country = 'ca' and fcode = 'p.ppl'
</pre>
		</div>

but this did not return any results. Am I doing something wrong?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1354.page#5672</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1354.page#5672</link>
				<pubDate><![CDATA[Sun, 5 Apr 2009 23:17:59]]> GMT</pubDate>
				<author><![CDATA[ ajmas]]></author>
			</item>
			<item>
				<title>Re:Looking up city?</title>
				<description><![CDATA[ Never mind, found the answer. Looks like I didn't consider accents. This works:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>select ge.* from geoname as ge, alternatename as al where al.alternateName like '%Quebec%' and ge.country = 'ca' and ge.geonameid = al.geonameid and ge.fcode = 'PPLA' group by ge.geonameid</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1354.page#5673</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1354.page#5673</link>
				<pubDate><![CDATA[Sun, 5 Apr 2009 23:26:16]]> GMT</pubDate>
				<author><![CDATA[ ajmas]]></author>
			</item>
	</channel>
</rss>