Sousa Posted March 25, 2007 Share Posted March 25, 2007 SELECT `categories`.`categories_id`, `categories_description`.`categories_name`, `categories_description`.`language_id`, `categories`.`categories_image`, `categories`.`parent_id`, `categories`.`sort_order` FROM `categories` Inner Join `categories_description` ON `categories`.`categories_id` = `categories_description`.`categories_id` WHERE `categories_description`.`language_id` = '4' AND `categories`.`parent_id` = '1' anyone can make it simple? KUBICO from Portugal Link to comment Share on other sites More sharing options...
vasttech Posted March 26, 2007 Share Posted March 26, 2007 Is this a mysql test? :) select c.categories_id, c.categories_image, c.parent_id, c.sort_order, cd.categories_name, cd.language_id from categories c, categories_description cd where c.parent_id = 1 and cd.language_id = 4 and c.categories_id = cd.categories_id should give you the same results. for what you are looking for you really can't simplify it further. osCommerce Knowledge Base osCommerce Documentation Contributions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.