[Solved] Convert SQL WHERE query to JOIN [closed]
For the most part, you just change your comma separated tables to JOIN clauses. The “ON” clause of the join is what comes from the WHERE clause SELECT DISTINCT r.recipe_id, r.recipe_name, r.recipe_image, r.recipe_duration, r.recipe_serving, r.recipe_difficulty, (SELECT category_name FROM tbl_category WHERE r.category_id = category_id) AS category_name, (SELECT cuisine_name FROM tbl_cuisine WHERE r.cuisine_id = cuisine_id) AS cuisine_name, … Read more