Fetch the latest log for each product

Поиск
Список
Период
Сортировка
От Bernie Huang
Тема Fetch the latest log for each product
Дата
Msg-id 399C1907.ADE41FE7@ec.gc.ca
обсуждение исходный текст
Список pgsql-sql
Hi,

I bet people have asked this question several times, but oh well, please
do anwser again.  Thanks.  =)

I have a product table and a log file.

product_tb
-----------
prod_id
prod_name
...

log_tb
---------
log_id
prod_id
cust_id
transact_date
...

How do I fetch the latest log for each product according to transaction
date?


- Bernie

Вложения

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Continuous inserts...
Следующее
От: Jeff Hoffmann
Дата:
Сообщение: Re: Fetch the latest log for each product