Help with Problem 9 in SQL: Queries

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-sql/projects/learn_sql_query_table

9 - Return 10 movies with an IMDb rating greater than 6, are comedies, were made after 1995, and sorted by IMDb rating from highest to lowest.

(Hint: you can use AND more than once in a statement)

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
When I input my code, the update box will not give me my table so something is wrong…

<In this course, it often helps to include a screenshot of your whole web browser – that lets everyone see what you see. If you wish to include a screenshot, add it below this line.>

<If you wish to copy/paste in your code, you can use this next section. This will allow others to copy/paste your code for testing – something that they won’t be able to do with just a screenshot.>

```

SELECT * FROM movies
WHERE imdb_rating < ‘6’
AND genre = ‘comedy’
AND year < 1995
ORDER BY imdb_rating DESC
LIMIT 10;

<do not remove the three backticks above>

made after 1995 would be > 1995

+++ show all table defintions
select * from sqlite_master;

++++ANALYZE in sqlite
http://stackoverflow.com/questions/17663379/how-to-understand-sqlite-explain-query-plan-result
http://www.sqlite.org/lang_analyze.html
http://www.sqlite.org/docs.html

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.