尝试编写并执行一个 MySQL 查询来显示所有电影的电影编号、电影名称、电影成本和电影类型,这些电影要么是动作电影,要么是喜剧电影,而且成本低于 50 美元。按流派升序对结果进行排序。
mysql> select mv_no, mv_name, mv_cost, mv_genre from movie
-> where mv_genre = ('Action' or 'Comedy') and mv_cost < 50
-> order by mv_genre;
+-------+----------------------------+---------+----------+
| mv_no | mv_name | mv_cost | mv_genre |
+-------+----------------------------+---------+----------+
| 1245 | Time to Burn | 45.49 | ACTION |
| 1237 | Beatnik Fever | 29.95 | COMEDY |
| 1239 | Where Hope Dies | 25.49 | DRAMA |
| 1234 | The Cesar Family Christmas | 39.95 | FAMILY |
+-------+----------------------------+---------+----------+
4 rows in set, 10 warnings (0.00 sec)