zsxdcfv21 Posted August 30, 2006 Share Posted August 30, 2006 whats the correct way to write this one :$q = "SELECT n.BuyerNoteID, n.Note, date_format(n.Created, '%d %b %y') FROM BuyerNote n LEFT JOIN (Buyer b) ON (b.BuyerID = n.BuyerID AND b.BuyerID = '{$_GET['BuyerID']}') LEFT JOIN (User u) ON (b.UserID = u.UserID) "; Link to comment https://forums.phpfreaks.com/topic/19193-mysql-syntax/ Share on other sites More sharing options...
Barand Posted August 30, 2006 Share Posted August 30, 2006 Do you want to a ) list buyers even if they have no buyerNote or user recordsb ) list buyerNotes even if they have no buyer or userrecordc ) list only those where there is a match in buyer and buyerNote but not user tables?etc etcIn other words, we don't know what is correct if we don't jnow what you want to achieve Link to comment https://forums.phpfreaks.com/topic/19193-mysql-syntax/#findComment-83072 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.