Re: select offset by alphabetical reference

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: "Dave [Hawk-Systems]" <dave(at)hawk-systems(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: select offset by alphabetical reference
Date: 2003-05-07 07:15:12
Message-ID: ghchbvo9clfdutp1j9lrhibrpgkm1i7jss@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 7 May 2003 01:50:47 -0400, "Dave [Hawk-Systems]"
<dave(at)hawk-systems(dot)com> wrote:
>Have a table with Last, First, etc...
>wish to create a select to grab everything from table whose last name is
>alphabetically greater than 'Smith'
>
>almost like the following (which is obviously incorrect);
> select last,first from mytable order by last offset 'Smith';

SELECT last, first FROM mytable WHERE last > 'Smith' ORDER BY last;

Servus
Manfred

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Arjen van der Meijden 2003-05-07 07:56:42 Re: Small bug in postgres' ./configure script and invalid
Previous Message g.hintermayer 2003-05-07 07:02:42 Re: Backend memory leakage when inserting