From: "D'Arcy" "J.M." Cain <darcy@druid.net>
To: alewis@themecca.net
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Case insensitive searchs
Date: Mon, 19 Apr 1999 12:25:29 -0400 (EDT)
Message-ID: <m10ZGrR-0000bHC@druid.net> (raw)
In-Reply-To: <Pine.LNX.4.05.9904181302020.21586-100000@tmg.themecca.net>
Thus spake Andy Lewis
> I have a table that has city names in it. Some of the cities have a number
> of different cases. For instance I may have:
>
> San Antonio
> san antonio
> San antonio
> SAN ANTONIO
>
> My question is how can I do a distinct search for all cities and only get
> one of each city?
SELECT DISTINCT UPPER (city) FROM table;
--
D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 424 2871 (DoD#0082) (eNTP) | what's for dinner.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: darcy@druid.net, alewis@themecca.net, pgsql-sql@hub.org
Subject: Re: [SQL] Case insensitive searchs
In-Reply-To: <m10ZGrR-0000bHC@druid.net>
References: <Pine.LNX.4.05.9904181302020.21586-100000@tmg.themecca.net> <m10ZGrR-0000bHC@druid.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox