<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "country = 'UK' not returning anything."]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "country = 'UK' not returning anything."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>country = 'UK' not returning anything.</title>
				<description><![CDATA[ I have loaded geonames into my own Postgres database but the following query returns no results

select * from geoname where country = 'UK' order by random() LIMIT 1

However the query works when I use 'US' or 'CA' as the country parameter. Why is 'UK' not returning anything?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/20287.page#29302</guid>
				<link>http://forum.geonames.org/gforum/posts/list/20287.page#29302</link>
				<pubDate><![CDATA[Sun, 11 Oct 2015 19:00:32]]> GMT</pubDate>
				<author><![CDATA[ xpro]]></author>
			</item>
			<item>
				<title>Re:country = 'UK' not returning anything.</title>
				<description><![CDATA[ The 'country code' for the UK, is actually GB

select * from geoname where country = 'GB' order by random() LIMIT 1 


Possibly confusion when the standard was devised, GB is short for Great Britain which is often confused with United Kingdom. When defining country top level domains, undid this mistake and switched to the more understandable .uk (.gb domains are not used) 
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/20287.page#29316</guid>
				<link>http://forum.geonames.org/gforum/posts/list/20287.page#29316</link>
				<pubDate><![CDATA[Sun, 1 Nov 2015 14:00:41]]> GMT</pubDate>
				<author><![CDATA[ barryhunter]]></author>
			</item>
			<item>
				<title>Re:country = 'UK' not returning anything.</title>
				<description><![CDATA[ Did you try GB? 

allCountries data uses ISO 2 lett country codes (I'm guessing that's what you import into your PostgreSQL)

From countryInfo: 
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
#ISO	ISO3	ISO-Numeric	fips	Country	Capital	Area&#40;in sq km&#41;	Population	Continent	tld	CurrencyCode	CurrencyName	Phone	Postal Code Format	Postal Code Regex	Languages	geonameid	neighbours	EquivalentFipsCode
GB	GBR	826	UK	United Kingdom	London	244820	62348447	EU	.uk	GBP	Pound	44	@# #@@|@## #@@|@@# #@@|@@## #@@|@#@ #@@|@@#@ #@@|GIR0AA	^&#40;&#40;&#91;A-Z&#93;\d{2}&#91;A-Z&#93;{2}&#41;|&#40;&#91;A-Z&#93;\d{3}&#91;A-Z&#93;{2}&#41;|&#40;&#91;A-Z&#93;{2}\d{2}&#91;A-Z&#93;{2}&#41;|&#40;&#91;A-Z&#93;{2}\d{3}&#91;A-Z&#93;{2}&#41;|&#40;&#91;A-Z&#93;\d&#91;A-Z&#93;\d&#91;A-Z&#93;{2}&#41;|&#40;&#91;A-Z&#93;{2}\d&#91;A-Z&#93;\d&#91;A-Z&#93;{2}&#41;|&#40;GIR0AA&#41;&#41;$	en-GB,cy-GB,gd	2635167	IE	
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/20287.page#29428</guid>
				<link>http://forum.geonames.org/gforum/posts/list/20287.page#29428</link>
				<pubDate><![CDATA[Sun, 1 Nov 2015 14:00:41]]> GMT</pubDate>
				<author><![CDATA[ rg_it]]></author>
			</item>
			<item>
				<title>Re:country = 'UK' not returning anything.</title>
				<description><![CDATA[ <p></p>

		<cite>rg_it wrote:</cite><br>
		<blockquote>allCountries data uses ISO 2 lett country codes (I'm guessing that's what you import into your PostgreSQL)

From countryInfo: 
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
#ISO  ISO3	ISO-Numeric	fips	Country	Capital	.....
GB	GBR	826	UK	United Kingdom	London ....</pre>
		</div>&nbsp;
		</blockquote>
I found 'UK' in column `fips` not in `country`. 

I also  don't find 'UK' in 'alternateNames'.

Maybe you'll better search un <b>Uk</b>raine?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/20287.page#31827</guid>
				<link>http://forum.geonames.org/gforum/posts/list/20287.page#31827</link>
				<pubDate><![CDATA[Sat, 7 Nov 2015 13:30:19]]> GMT</pubDate>
				<author><![CDATA[ gadacz]]></author>
			</item>
			<item>
				<title>Re:country = 'UK' not returning anything.</title>
				<description><![CDATA[ Exactly try GB not Uk.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/20287.page#31940</guid>
				<link>http://forum.geonames.org/gforum/posts/list/20287.page#31940</link>
				<pubDate><![CDATA[Sat, 7 Nov 2015 13:30:19]]> GMT</pubDate>
				<author><![CDATA[ patrickswez]]></author>
			</item>
			<item>
				<title>Re:country = 'UK' not returning anything.</title>
				<description><![CDATA[ Wow, I did not know that "GB" is "UK" before, maybe other place mistake is because of the same reason for me. thanks]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/20287.page#32899</guid>
				<link>http://forum.geonames.org/gforum/posts/list/20287.page#32899</link>
				<pubDate><![CDATA[Sun, 15 Nov 2015 08:13:55]]> GMT</pubDate>
				<author><![CDATA[ danielhp]]></author>
			</item>
	</channel>
</rss>