Search Postgresql Archives

Problem with sql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux