Re: SQL problem: bank account - Mailing list pgsql-sql

From Andrew J. Kopciuch
Subject Re: SQL problem: bank account
Date
Msg-id 200306020013.39200.akopciuch@bddf.ca
Whole thread Raw
In response to SQL problem: bank account  ("Erik G. Burrows" <eburrows@erikburrows.com>)
List pgsql-sql
> I need to get the most recent transaction for each customer. I need only
> the transaction ID, but the entire row would be best.
>

Why don't you alter the customer table to hold the transaction ID of the most 
recent transaction?



Some questions though:

Do you vacuum the database regularly?
Do you have any indexes created?


Some things to think about.



Andy




pgsql-sql by date:

Previous
From: "Erik G. Burrows"
Date:
Subject: SQL problem: bank account
Next
From: Sean Chittenden
Date:
Subject: Re: SQL problem: bank account