Re: SQL problem: bank account

Поиск
Список
Период
Сортировка
От Andrew J. Kopciuch
Тема Re: SQL problem: bank account
Дата
Msg-id 200306020013.39200.akopciuch@bddf.ca
обсуждение исходный текст
Ответ на SQL problem: bank account  ("Erik G. Burrows" <eburrows@erikburrows.com>)
Список 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 по дате отправления:

Предыдущее
От: "Erik G. Burrows"
Дата:
Сообщение: SQL problem: bank account
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: SQL problem: bank account