Skip navigation links

MySQL Forums :: Performance :: LEFT JOIN with CASE WHEN


Advanced Search

Re: LEFT JOIN with CASE WHEN
Posted by: Chad Brogan ()
Date: October 25, 2009 01:34PM

That would explain why it takes so long. What makes this even scarier is that the pricing table is going to grow significantly. Which means that 1641 rows is going to balloon to possibly 10,000+ or 100,000+ rows. I've got to figure out a better way of combining this data.

I'm going to go out on a limb here for some schema design advice. I've got a table of sales stored by date, customer and product. Roughly 2M+ rows. I've got a customer master and product master. The pricing table has all the fields from both masters, which seems inefficient. It has 12 PKs. I don't know how else to store pricing separate from the sales. Ideally, I need a solution that lets me record pricing by the least amount of criteria possible, and then overlay that pricing dynamically on each sales record via a query.

Thanks for the help. It's my first time posting on the forums, and I was surprised at the speed and quality of the responses.

Options: ReplyQuote


Subject Views Written By Posted
LEFT JOIN with CASE WHEN 768 Chad Brogan 10/23/2009 02:25PM
Re: LEFT JOIN with CASE WHEN 285 Stefan Rindeskar 10/23/2009 06:33PM
Re: LEFT JOIN with CASE WHEN 254 Chad Brogan 10/23/2009 09:54PM
Re: LEFT JOIN with CASE WHEN 261 Rick James 10/23/2009 10:29PM
Re: LEFT JOIN with CASE WHEN 245 Chad Brogan 10/25/2009 01:34PM
PARTIAL RESOLUTION - Re: LEFT JOIN with CASE WHEN 230 Chad Brogan 10/27/2009 07:15PM
Re: PARTIAL RESOLUTION - Re: LEFT JOIN with CASE WHEN 85 Chad Brogan 11/14/2009 12:30PM
Re: PARTIAL RESOLUTION - Re: LEFT JOIN with CASE WHEN 77 Rick James 11/17/2009 11:44PM


Sorry, only registered users may post in this forum.