Re: [GENERAL] Performance of outer joins?

2006-12-17 Thread macgillivary
ben would something like this work in your situation? SELECT customer.id, customer.name, deliveries.calendar_day, deliveries.delivered FROM ben_customers as customer, ben_deliveries as deliveries WHERE customer.id = deliveries.customers_id and deliveries.calendar_day in (Select day

[GENERAL] Performance of outer joins?

2006-12-16 Thread Benjamin Smith
I have a situation that can be summarized to the following: -- day in 20061215 format Create table calendar ( day integer unique not null ); Create table customers ( id serial unique not null, name varchar, address varchar, ); Create table

Re: [GENERAL] Performance of outer joins?

2006-12-16 Thread Tom Lane
Benjamin Smith [EMAIL PROTECTED] writes: FROM customers JOIN calendars ON ( -- GIVE A CALENDAR OF POSSIBLE DAYS FOR DELIVERIES calendar.day 20061201 AND calendar.day = 20060101 ) Haven't you written a