Omzy Posted July 30, 2009 Share Posted July 30, 2009 ps_manufacturer table contains fields id_manufacturer and name ps_manufacturer_lang table contains fields id_manufacturer and description I need a join query that let's me extract name and description based on the id_manufacturer Unfortunately I can't use 2 separate queries as the program I'm using won't let me do this, so everything needs to be one query. Link to comment https://forums.phpfreaks.com/topic/168113-solved-mysql-join-query/ Share on other sites More sharing options...
kickstart Posted July 30, 2009 Share Posted July 30, 2009 Hi Here you go SELECT `name`, `description` FROM ps_manufacturer a INNER JOIN ps_manufacturer_lang b ON a.id_manufacturer = b.id_manufacturer WHERE a.id_manufacturer = $SomeIdYouAreLookingFor All the best Keith Link to comment https://forums.phpfreaks.com/topic/168113-solved-mysql-join-query/#findComment-886697 Share on other sites More sharing options...
Omzy Posted July 30, 2009 Author Share Posted July 30, 2009 thanks mate that has worked perfectly. Link to comment https://forums.phpfreaks.com/topic/168113-solved-mysql-join-query/#findComment-886716 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.