simple (?) join - Mailing list pgsql-sql

From Gary Stainburn
Subject simple (?) join
Date
Msg-id 200909241616.36933.gary.stainburn@ringways.co.uk
Whole thread Raw
Responses Re: simple (?) join
Re: simple (?) join
Re: simple (?) join
List pgsql-sql
Hi folks.

I have two tables

create table orders (
o_id serial primary key
...
);

create table orders_log (
ol_id serial primary key,
o_id int4 not null references orders(o_id),
ol_timestamp timestamp,
ol_user,
);

How can I select all from orders and the last (latest) entry from the 
orders_log?

Cheers
-- 
Gary Stainburn

Gary's Haircut 700
Please visit http://www.justgiving.com/Gary-Stainburn/ to help me 
raise money for Cancer Research - in return I'll have my head shaved


pgsql-sql by date:

Previous
From: Mark J Camilleri
Date:
Subject: Re: SQL Subqueries on each result row
Next
From: "Oliveiros C,"
Date:
Subject: Re: simple (?) join