我对这一询问感到不安,认为这是斯坦福数据库MOOC的一项活动:
对于同一审查者两次评定同一部电影并第二次给予更高评级的所有情况,审查者的姓名和电影名称均予归还。
作为这项工作的一部分,正在使用三个表格:movie, Remuneration and reviewer
。 正在使用的系统是SQLite
。
movie;
+----------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+---------+------+-----+---------+-------+
| mID | int(11) | YES | | NULL | |
| title | text | YES | | NULL | |
| year | int(11) | YES | | NULL | |
| director | text | YES | | NULL | |
+----------+---------+------+-----+---------+-------+
rating;
+------------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+---------+------+-----+---------+-------+
| rID | int(11) | YES | | NULL | |
| mID | int(11) | YES | | NULL | |
| stars | int(11) | YES | | NULL | |
| ratingDate | date | YES | | NULL | |
+------------+---------+------+-----+---------+-------+
reviewer;
+-------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------+------+-----+---------+-------+
| rID | int(11) | YES | | NULL | |
| name | text | YES | | NULL | |
+-------+---------+------+-----+---------+-------+
Expected Query Result:
name title
Sarah Martinez Gone with the Wind
如果任何人想要获得数据,。