Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f93EYVn98849 for ; Wed, 3 Oct 2001 10:34:31 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f93E7cL37836 for pgsql-sql@postgresql.org; Wed, 3 Oct 2001 10:07:38 -0400 (EDT) (envelope-from news) From: "Bob Swerdlow" X-Newsgroups: comp.databases.postgresql.sql Subject: ORDER BY case insensitive? Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Wed, 03 Oct 2001 14:06:39 GMT X-Complaints-To: abuse@maine.rr.com Organization: Time Warner Road Runner - Portland ME To: pgsql-sql@postgresql.org X-Archive-Number: 200110/57 X-Sequence-Number: 5012 How do I get the rows sorted in a case insensitive way? I have some queries that basically fit the form: SELECT * FROM MyTable ORDER BY Name; When I view the results, all of the Name's that start with an upper case letter precede all of the Name's that start with a lower case letter. I want them all in alphabetic order, regardless of case. I've looked in PostgreSQL Introduction and Concepts by Bruce Momjian and in the FAQ at http://postgresql.overtone.org/docs/faq-english.html Thanks for your help. -- Bob Swerdlow Chief Operating Officer Transpose, LLC rswerdlow@transpose.com