Re: [SQL] Problem with JOINS

2004-05-21 Thread Tom Lane
Charlie Clark <[EMAIL PROTECTED]> writes: > WHERE true > AND > person.id_status = 2 > AND > person.id_authorise = 2 > AND > ltrim(lower(address.ort)) like lower('Neuss%') > AND > bs.value = 'bezahlt' OR bs.value = 'erlassen' > AND > users.roles like '%Premium' AND binds more tightly than OR --- I

Re: [SQL] Problem with JOINS

2004-05-21 Thread Stephan Szabo
On Fri, 21 May 2004, Charlie Clark wrote: > SELECT > gender.value as anrede_value, > person.name as person_name, > person.vorname as person_vorname, > person.zusatz as person_zusatz, > person.birthdate as person_birthdate, > address.strasse as address_strasse, > address.hausnummer as address_hau

Re: [SQL] Problem with joins

2000-07-05 Thread Thomas Lockhart
> I want to get a list of data sources with the corresponding data, > if the data exists, or with null, if the data doesn't. But anyway > I need the data sources (all of them). You want an outer join. Postgres doesn't have that yet, but you can mimic it. > I have also tried: > select source_nam