-
Notifications
You must be signed in to change notification settings - Fork 21
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
base: main
Are you sure you want to change the base?
clementi_hw2_submission #13
Conversation
…because they both take 45 min to execute
…ed by Penn's generalized campus
group by shape_id | ||
) | ||
|
||
select distinct(t.trip_headsign) as trip_headsign, st_length(r.the_line_geom) as trip_length |
There was a problem hiding this comment.
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.
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.