MySQL Forums
Forum List  »  Optimizer & Parser

Re: LEFT JOIN WHERE GROUP BY
Posted by: Rick James
Date: April 05, 2012 08:01PM

FROM tbl1
LEFT JOIN tbl2 ON ...

tbl1 is nothing more than a complete list of statuses.
tbl2 is your real table.

LEFT JOIN will include all the rows (statuses) from the 'left' table, there by letting you get NULL from the 'right' table.

Options: ReplyQuote


Subject
Views
Written By
Posted
3074
April 02, 2012 02:51AM
1307
April 02, 2012 12:04PM
1345
April 02, 2012 01:24PM
1364
April 02, 2012 04:29PM
2033
April 03, 2012 12:50AM
1354
April 03, 2012 05:40PM
1461
April 03, 2012 11:22PM
1310
April 04, 2012 05:12PM
1064
April 04, 2012 11:10PM
Re: LEFT JOIN WHERE GROUP BY
1572
April 05, 2012 08:01PM


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.