Skip to content

PATRICIA S-lab-mysql-select #19

Open
psaeztorres wants to merge 2 commits intoIronhack-data-bcn-oct-2023:mainfrom
psaeztorres:main
Open

PATRICIA S-lab-mysql-select #19
psaeztorres wants to merge 2 commits intoIronhack-data-bcn-oct-2023:mainfrom
psaeztorres:main

Conversation

@psaeztorres
Copy link
Copy Markdown

No description provided.

@sh-ih
Copy link
Copy Markdown

sh-ih commented Nov 2, 2023

Great job on this lab.

Some comments:
In question 4. Get 10 the longest movies from 2006, you need to order by length and filter to get only 2006 movies:

SELECT title, length FROM film
	WHERE release_year = 2006 
	ORDER BY length DESC
	LIMIT 10;

In this case, all movies are from 2006, so not using the filtering will render the same results, but it is always better to make the query as specific as possible, to avoid getting incorrect results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants