| From: | Richard Huxton <dev(at)archonet(dot)com> |
|---|---|
| To: | Mark Collette <mark(at)hyperbyte(dot)ab(dot)ca> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Updating column to link one table to another |
| Date: | 2004-12-20 09:13:28 |
| Message-ID: | 41C697B8.9030700@archonet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Mark Collette wrote:
>
> Now, I've added the infrequentId columns to both, as an optimization, so
> that I can quickly find the InfrequentTable entry for a given
> FrequentTable entry. I've done this because I want to speed up
> SELECTs. Any new INSERTs are working just fine. But, all my legacy
> entries, are not linked up yet. I need to know how I can UPDATE the
> FrequentTable rows, where their infrequentId is zero, to point at the
> last InfrequentTable entry whose timestamp ts is before its own
> timestamp ts.
How do you distinguish between InfrequentTable entries when their
timestamp is the same?
--
Richard Huxton
Archonet Ltd
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Doug Y | 2004-12-20 16:30:45 | I'm stumped |
| Previous Message | Kretschmer Andreas | 2004-12-19 14:52:36 | Re: Question about geometric function area() |