Selecting rows from one table using values gotten from another table MYSQL

前端 未结 5 588
暗喜
暗喜 2021-02-07 07:48

I have currently have 2 mysql tables in my db

Film and Film_Ratings_Report

The primary key for Film is filmid which is u

5条回答
  •  野性不改
    2021-02-07 08:31

    SELECT * FROM film WHERE id IN 
      (SELECT filmid FROM film_rating_report WHERE rating = 'GE');
    

    should work

提交回复
热议问题