Miko Posted June 24, 2010 Share Posted June 24, 2010 hi! I have here a select statement with a left join: SELECT m.sender_name1, m.sender_id, p.vis FROM `Levensloop`.`peter` p LEFT JOIN `Levensloop`.`MPSAVIS` m ON m.sender_id = p.vis The field m.sender_id contains information like 2300000217, the 217 is a customer number, the field vis contains all the customer numbers but here the customer number is only 217 and not 2300000217. I know that I can achieve the select statement with left join but I don't think I'm doing it right here. Anyone can help me out here? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/205734-mysql-select-statement-question/ Share on other sites More sharing options...
fenway Posted June 24, 2010 Share Posted June 24, 2010 You can extract that portion from your field -- of course, that won't use an index. Quote Link to comment https://forums.phpfreaks.com/topic/205734-mysql-select-statement-question/#findComment-1076631 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.