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! 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. Link to comment https://forums.phpfreaks.com/topic/205734-mysql-select-statement-question/#findComment-1076631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.