Joining three tables using MySQL

前端 未结 9 2396
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 10:40

I have three tables named

**Student Table**
-------------
id    name
-------------
1     ali
2     ahmed
3     john
4     king

**Course Table**
------------         


        
9条回答
  •  野性不改
    2020-11-22 11:03

    Query to join more than two tables:

    SELECT ops.field_id, ops.option_id, ops.label
    FROM engine4_user_fields_maps AS map 
    JOIN engine4_user_fields_meta AS meta ON map.`child_id` = meta.field_id
    JOIN engine4_user_fields_options AS ops ON map.child_id = ops.field_id 
    WHERE map.option_id =39 AND meta.type LIKE 'outcomeresult' LIMIT 0 , 30
    

提交回复
热议问题