MySQL Forums
Forum List  »  Newbie

Re: Rewrite Full Outer Join into Subquery
Posted by: Rick James
Date: October 11, 2014 01:09PM

Are you mistakenly tying the date_purchased to the budget_date? Or do you need two instances of dim_date?

I dislike using normalizing out dates and other "continuous" values.

You gave part of a RIGHT JOIN..UNION..LEFT JOIN, but it would be nice to see the FROM part, too. While debugging it, get rid of all the fluff.

RIGHT..UNION DISTINCT..LEFT is the way to get all the rows in one table or another or both. Is that what you want? Some competing products have syntax for such ("*=*"), MySQL does not.

Please provide SHOW CREATE TABLE, too.

Options: ReplyQuote


Subject
Written By
Posted
Re: Rewrite Full Outer Join into Subquery
October 11, 2014 01:09PM


Sorry, you can't reply to this topic. It has been closed.

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.