Re: row numbering

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: row numbering
Date: 2005-02-28 18:44:13
Message-ID: 20050228184413.GD27212@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 28, 2005 at 17:46:43 +0100,
Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> wrote:
>
> There are 5 vaccinations in a given vaccination schedule.
>
> Patient had 3 shots.
>
> I want the view to show me that shot 4 and 5 are missing
> without having to enter the cardinality of the vaccination in
> the original data.

For this kind of task you usually want to use a left (or right) join.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2005-02-28 18:57:23 Re: Unicode support on Win32
Previous Message David Fetter 2005-02-28 18:33:32 Re: Reading from Mysql & writting in PGsql