Re: Complex joining - multiple tables to one

2005-01-04 Thread SGreen
It's probably your JOIN on shipped items producing a cross product with your JOIN on ordered items. What happens if you take the entire shippeditems JOIN out of your statement? Are your numbers still off? Since your query is not using data from that table you should be able to eliminate it

Complex joining - multiple tables to one

2005-01-03 Thread Ville Mattila
Hi there! I have some problems with the complex MySQL join operations. In most cases, LEFT JOIN fulfills my needs but sometimes it doesn't work in the expected way. I'll give an example: orders -- - orderid - customerid customers - - id - customername orderitems -- - itemid