MySQL Forums
Forum List  »  Optimizer & Parser

Re: Problem with LEF OUTER JOIN
Posted by: Sebastien Caisse
Date: March 23, 2006 08:06AM

You have to discard null values just the same in Access given a proper query.

Example:

SELECT * FROM table1 LEFT JOIN table2 ON (table1.id = table2.table1IdRef AND table2.itemType = "Deleted") WHERE table2.itemType IS NULL;

This would essentially select the rows from table1 (and table2...) which are NOT "Deleted".

This is actually a pretty bad example in design in most circumstances, but it's simple enough to show the use of doing such a thing.



Edited 1 time(s). Last edit at 03/23/2006 08:07AM by Sebastien Caisse.

Options: ReplyQuote


Subject
Views
Written By
Posted
3537
March 19, 2006 04:01PM
1988
March 19, 2006 05:48PM
2600
March 20, 2006 04:04AM
2376
March 20, 2006 10:31AM
2155
March 20, 2006 03:02PM
1987
March 20, 2006 03:34PM
2079
March 21, 2006 06:35PM
2072
March 22, 2006 05:10PM
Re: Problem with LEF OUTER JOIN
2103
March 23, 2006 08:06AM
2120
March 22, 2006 07:06PM
2234
March 24, 2006 02:01PM
2323
March 26, 2006 08:05PM
2286
March 26, 2006 11:40PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.