From: Daniel Hernandez [mailto:breydan@excite.com] Sent: Monday, August 18, 2008 12:30 PM To: pgsql-sql@postgresql.org; erouse@comsquared.com Subject: Re: [SQL] Join question
have you tried a right Join?
Daniel Hernndez. San Diego, CA. "The more you learn, the more you earn". Fax: (808) 442-0427
-----Original Message----- From: "Edward W. Rouse" [erouse@comsquared.com] Date: 08/15/2008 09:48 AM To: pgsql-sql@postgresql.org Subject: Re: [SQL] Join question
I have 2 tables, both have a user column. I am currently using a left join from table a to table b because I need to show all users from table a even those not having an entry in table b. The problem is I also have to include items from table b with that have a null user. There are some other criteria as well that are simple where clause filters. So as an example: