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

clementi_hw2_submission #13

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

johnatawnclementawn
Copy link

I hope you enjoy these works of art. A heads up - I did not solve my Q6 & 7 optimization problem, so they run, they just take 45 minutes... I've included screenshots of the answers and the time it took to execute.

group by shape_id
)

select distinct(t.trip_headsign) as trip_headsign, st_length(r.the_line_geom) as trip_length
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be clear, distinct is not a function. Rather select distinct is a type of select. So the distinct applies to the entire set of fields you're selecting. This is the same as:

select distinct
    t.trip_headsign as trip_headsign,
    st_length(r.the_line_geom) as trip_length
from ...

The only reason I'm calling it out is because you're writing distinct as if it only applies to the trip_headsign field and I just want to be clear it does not.

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