problem join - Mailing list pgsql-sql

From chester c young
Subject problem join
Date
Msg-id 820562.64742.qm@web54307.mail.re2.yahoo.com
Whole thread Raw
Responses Re: problem join  (Osvaldo Rosario Kussama <osvaldo_kussama@yahoo.com.br>)
List pgsql-sql
having problem joining these correctly:

schedule
- cal_id references calendar not null
- usr_id references users not null
= unique( calZ_id, usr_id )
- result_no not null

activity
- cal_id references calendar not null
- usr_id references users not null
= unique( cal_id, usr_id )
- from_ts timestamp not null

trying to join
- cal_id
- usr_id
- schedule.result_no (might be null)
- activity.from_ts (might be null)
where schedule.usr_id = activity.usr_id would result in one row

thanks for insight!

      
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 


pgsql-sql by date:

Previous
From: Paul Lambert
Date:
Subject: Join question
Next
From: "Phillip Smith"
Date:
Subject: Re: Join question