am Thu, dem 21.06.2007, um 12:42:52 +0200 mailte Dani Castaños folgendes:
> >test=*# select chr(x), count(1) from generate_series(65,90) x, w where
> >upper(substring (w.t from 1 for 1)) ~ chr(x) group by 1;
> > chr | count
> >-----+-------
> > T | 1
> > B | 1
> > F | 2
> >(3 rows)
> >
> >
> >
> >Andreas
> >
> It's exactly what i want. Just one more thing... What if i want also the
> ones that begin by a non-alphabetical character.
> In your example:
change the generate_series(65,90) to generate_series(32,90)
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net