Hello Everyone,
I've got a snippet of code that is not resulting in what I want.
I have 2 tables.
table 1 is projects, holds project info and project_types (category ids)
table 2 is categories, holds category ids and category names
My snippet of code here is showing the category/project_type id instead of the category_name. What did I do wrong?
SELECT p.project_types, c.cat_name FROM projects p LEFT JOIN categories c ON p.project_types = c.cat_id GROUP BY p.project_types ORDER BY c.cat_name ASC
PS
I posted this in the coding forum first, that may have been the wrong place.