Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CC9BA9FC0E6 for ; Thu, 21 Jun 2007 08:12:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83896-05 for ; Thu, 21 Jun 2007 08:12:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by postgresql.org (Postfix) with ESMTP id DABD89FC103 for ; Thu, 21 Jun 2007 08:12:08 -0300 (ADT) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1I1Ka70lws-0006Fj; Thu, 21 Jun 2007 13:12:07 +0200 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1I1Ka6-0003BP-00 for pgsql-sql@postgresql.org; Thu, 21 Jun 2007 13:12:06 +0200 Date: Thu, 21 Jun 2007 13:12:06 +0200 From: "A. Kretschmer" To: pgsql-sql@postgresql.org Subject: Re: Results per letter query Message-ID: <20070621111206.GK1405@a-kretschmer.de> References: <467A406A.3060907@androme.es> <20070621100425.GH1405@a-kretschmer.de> <467A562C.2020504@androme.es> <20070621105045.GJ1405@a-kretschmer.de> <467A59F9.4030801@androme.es> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <467A59F9.4030801@androme.es> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! User-Agent: Mutt/1.5.9i X-Provags-ID: V01U2FsdGVkX19SRogg+sGzYiuxAy9W9mrlrPSvnNk/z/TB60l 4R9tWWcuHHUHOSwZhWXhbEZujhhhWkvDiuGosgVqVXhl4e7ntv Nta3IhUXxSn923/x+Z/JaZlRM38MHNW X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/161 X-Sequence-Number: 28651 am Thu, dem 21.06.2007, um 12:59:05 +0200 mailte Dani Castaņos folgendes: > >change the generate_series(65,90) to generate_series(32,90) > > > > > >Andreas > > > With only changing 65 to 32: > > ERROR: invalid regular expression: parentheses () not balanced > > I think, it could be a problem with UPPER and non alphabetical chars No, the ~ - operator (Regex), try this: select chr(x), count(1) from generate_series(32,90) x, w where upper(substring (w.t from 1 for 1)) = chr(x) group by 1; Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net