From 8b41587d96fdd1ac46a5c1cf574f914b04ad64c1 Mon Sep 17 00:00:00 2001 From: P-ppc Date: Thu, 1 Nov 2018 22:46:01 +0800 Subject: [PATCH] sovle problem Not Boring Movies --- README.md | 3 ++- database/NotBoringMovies/README.md | 2 ++ database/NotBoringMovies/solution.sql | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 database/NotBoringMovies/README.md create mode 100644 database/NotBoringMovies/solution.sql diff --git a/README.md b/README.md index 50c6d3d..2686433 100644 --- a/README.md +++ b/README.md @@ -323,4 +323,5 @@ All solutions will be accepted! |:-|:-|:-|:-| |596|[Big Countries](https://leetcode-cn.com/problems/big-countries/description/)|[mysql](./database/BigCountries)|Easy| |182|[Duplicate Emails](https://leetcode-cn.com/problems/duplicate-emails/description/)|[mysql](./database/DuplicateEmails)|Easy| -|596|[Classes More Than 5 Students](https://leetcode-cn.com/problems/classes-more-than-5-students/description/)|[mysql](./ClassesMoreThan5Students)|Easy| \ No newline at end of file +|596|[Classes More Than 5 Students](https://leetcode-cn.com/problems/classes-more-than-5-students/description/)|[mysql](./ClassesMoreThan5Students)|Easy| +|620|[Not Boring Movies](https://leetcode-cn.com/problems/not-boring-movies/description/)|[mysql](./database/NotBoringMovies)|Easy| \ No newline at end of file diff --git a/database/NotBoringMovies/README.md b/database/NotBoringMovies/README.md new file mode 100644 index 0000000..85258f8 --- /dev/null +++ b/database/NotBoringMovies/README.md @@ -0,0 +1,2 @@ +# Not Boring Movies +This problem is easy to solve \ No newline at end of file diff --git a/database/NotBoringMovies/solution.sql b/database/NotBoringMovies/solution.sql new file mode 100644 index 0000000..8ed8ca3 --- /dev/null +++ b/database/NotBoringMovies/solution.sql @@ -0,0 +1,2 @@ +# Write your MySQL query statement below +select * from cinema where description != 'boring' and id % 2 = 1 order by rating desc \ No newline at end of file