MySQL-620. Not Boring Movies

X city opened a new cinema, many people would like to go to this cinema. The cinema also gives out a poster indicating the movies’ ratings and descriptions.

Please write a SQL query to output movies with an odd numbered ID and a description that is not 'boring'. Order the result by rating.

For example, table cinema:

MySQL-620. Not Boring Movies_第1张图片

For the example above, the output should be:

MySQL-620. Not Boring Movies_第2张图片
SELECT * FROM cinema
WHERE id%2 = 1 AND description != 'boring'
ORDER BY rating DESC

你可能感兴趣的:(MySQL-620. Not Boring Movies)