ORDER BY 'criteria'

From: Dennis Gearon <gearond(at)cvc(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: ORDER BY 'criteria'
Date: 2003-01-23 17:02:58
Message-ID: 1U72ZWSKFON95EBVQDA2JD7QKPIF.3e302042@cal-lab
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scenario:
A table that has recoreds in every language under the sun in it,
in UTF-8 format,
A column which identifies which language a record is in,
An INT4 column indentifying the items which are stored in
multiple languages.

Examples:
CtryID Country Language
1 Russia US-EN
1 Руссйя RU <russian spelled in Russian, sort of>

I want to pull out groups of records by language and the country, and then
SORT THE RECORDS IN THE LANGUAGE SELECTED.

Is there any way to say which language to ORDER BY in an SQL statement? Is there in the SQL
standard? If not, this is a serious deficiency for global companies.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Renê Salomão 2003-01-23 17:29:35 Pg 7.3.1 & DBD::Pg 1.21
Previous Message scott.marlowe 2003-01-23 17:00:05 Re: embedded postgres