Jump to content

Mysql Select statement question


Miko

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.