X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id A4A2D9FB316 for ; Thu, 10 Aug 2006 18:39:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 97204-03 for ; Thu, 10 Aug 2006 21:39:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by postgresql.org (Postfix) with ESMTP id D00549FB2F8 for ; Thu, 10 Aug 2006 18:39:24 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id m3so635173ugc for ; Thu, 10 Aug 2006 14:39:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PAVQEKJy0Rx5k93TdG9Sw1g6U47J2NnK37ca5QFGDp7/p6+Dt2+l8jB/S4Z1tZT60B6/HtdrR1Wk1BZn6TAFTw0VtAC0Ghh1m47QNiIU91rhDU2RT1kE/4YDy5il8nEyTeukofPQqTJKDzlJmeyQhtK3Z4lO1aK/qkIYg/uOaEs= Received: by 10.67.93.7 with SMTP id v7mr3220668ugl; Thu, 10 Aug 2006 14:39:23 -0700 (PDT) Received: by 10.66.234.16 with HTTP; Thu, 10 Aug 2006 14:39:23 -0700 (PDT) Message-ID: Date: Thu, 10 Aug 2006 15:39:23 -0600 From: "=?ISO-8859-1?Q?Rodrigo_De_Le=F3n?=" To: pgsql-sql@postgresql.org Subject: Re: how do I check for lower case In-Reply-To: <44DB97C5.9090307@noaa.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44DB97C5.9090307@noaa.gov> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.199 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/73 X-Sequence-Number: 26031 On 8/10/06, Juliann Meyer wrote: > I have a table with a column, lets call it identifier, that is defined > as varchar(8) that should never contain lower case letters. Its a large > table. Is there a way to query the table to see if any values in this > column are lower case and to get a list out? The user interface > application that users use prevents them from adding an entry in lower > case now, but didn't in earlier version. select * from sometable where identifier <> upper(identifier); Regards, Rodrigo