MySQL Forums
Forum List  »  Newbie

Re: LEFTJOIN ???
Posted by: Tony Mole
Date: December 13, 2017 08:38AM

Aha - finally made some progress... the code I posted above does now work in PHPMyAdmin... when I looked at the ANALYZE TABLE results I thought perhaps the fact that there was no identified unique column would cause confusion.

So I have assigned a unique column on each table and now it works :)

OK, so it doesnt work from my PHP script;

mysql_query ( "SELECT stock_price.Man_Pt_Nr, stock_price.Sup_Pt_Nr, stock_price.Manufacturer, stock_price.Description, stock_total.Qty, stock_price.Cost, stock_price.RRP, stock_price.Weight, stock_price.ETA, stock_price.Disti, stock_price.Condition FROM stock_price LEFT JOIN stock_total ON stock_price.Sup_Pt_Nr = stock_total.Sup_Pt_Nr" );

But - thats another forum I guess :)

Thanks for the pointers Peter.

Kind Regards

Options: ReplyQuote


Subject
Written By
Posted
December 12, 2017 11:41AM
December 12, 2017 12:04PM
December 12, 2017 03:39PM
December 12, 2017 05:21PM
December 13, 2017 03:04AM
December 13, 2017 03:29AM
Re: LEFTJOIN ???
December 13, 2017 08:38AM
December 13, 2017 08:45AM
December 13, 2017 10:34AM
December 15, 2017 09:57AM
December 16, 2017 04:44AM
December 19, 2017 10:17AM


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.