help with troublesome query

From: teknokrat <teknokrat(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: help with troublesome query
Date: 2003-07-15 13:26:16
Message-ID: bf0vdv$3pi$1@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have three tables customers which 1-many with requests which is 1-1
with applications. all customers have at least one request but not all
requests have an application.

I want a query to return all the customers and their application data if
they have any ( or else null). So this is like a left join of customers
with applications but I do not want multiple rows of customers UNLESS
they have an application.

thanks

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Viorel Dragomir 2003-07-15 13:37:31 Re: summing tables
Previous Message Scott Cain 2003-07-15 13:00:25 Cannot insert dup id in pk