Problem with sql

Поиск
Список
Период
Сортировка
От x asasaxax
Тема Problem with sql
Дата
Msg-id 91495cb0810281936x74446f92ld48c92dbfffdbc6f@mail.gmail.com
обсуждение исходный текст
Ответы Re: Problem with sql  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-general
Hi everyone,

   I have two tables:

table_1: product_code, atualization_date
table_2: id, date, value

I need to get the value of table 2 that has the greatest date that is minor that atualization_date.

The select should return something like that:
unique product_code´s, with their atualization_date and their value

Did anyone knows how to solve this problem?

Thanks a lot.

В списке pgsql-general по дате отправления:

Предыдущее
От: Jason Long
Дата:
Сообщение: Decreasing WAL size effects
Следующее
От: "David Wilson"
Дата:
Сообщение: Re: postgresql and Mac OS X