Re: Some more questions on DB schema

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Alexey Borzov" <borz_off(at)cs(dot)msu(dot)su>
Cc: <pgsql-www(at)postgresql(dot)org>
Subject: Re: Some more questions on DB schema
Date: 2004-04-28 12:48:45
Message-ID: 03AF4E498C591348A42FC93DEA9661B889FBA4@mail.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

> -----Original Message-----
> From: Alexey Borzov [mailto:borz_off(at)cs(dot)msu(dot)su]
> Sent: 28 April 2004 13:39
> To: Dave Page
> Cc: pgsql-www(at)postgresql(dot)org
> Subject: Re: [pgsql-www] Some more questions on DB schema
>
>
> There are some problems with this... Run the following query
>
> SELECT id, version, file
> FROM comments c
> WHERE NOT EXISTS (
> SELECT id
> FROM docs d
> WHERE d.version = c.version AND
> d.file = c.file
> );
>
> and observe the comments that are linked to non-existant
> pages of documentation. Someone'll have to fix these before
> adding a foreign key will be possible.

Fixed, fkey added.

Regards, Dave.

Browse pgsql-www by date

  From Date Subject
Next Message Ned Lilly 2004-04-28 15:32:41 docs search not working?
Previous Message Alexey Borzov 2004-04-28 12:39:06 Re: Some more questions on DB schema