Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Marc Folch] lab-mysql-window-functions #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcfolchp
Copy link

No description provided.

@sh-ih
Copy link

sh-ih commented Nov 22, 2023

This was an excellent lab!

On query 1, you got a different result in avg_rental_duration because the expected result was calculated using the rental duration column directly, instead of calculating with DATEDIFF

select title, rental_duration, AVG(rental_duration) OVER () AS avg_rental_duration
from film;

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