Fetch the latest log for each product - Mailing list pgsql-sql

From Bernie Huang
Subject Fetch the latest log for each product
Date
Msg-id 399C1907.ADE41FE7@ec.gc.ca
Whole thread Raw
List 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

Attachment

pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Continuous inserts...
Next
From: Jeff Hoffmann
Date:
Subject: Re: Fetch the latest log for each product