Skip to content

completed SQL queries#3

Open
thebaraah wants to merge 1 commit into
HackYourAssignment:mainfrom
thebaraah:main
Open

completed SQL queries#3
thebaraah wants to merge 1 commit into
HackYourAssignment:mainfrom
thebaraah:main

Conversation

@thebaraah

Copy link
Copy Markdown

No description provided.

Comment thread schema_setup.sql
-- TODO
vendor_id,
pickup_datetime::TIMESTAMP AS pickup_datetime,
dropoff_datetime,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It was not in the assignment but it's best to cast all similar columns to similar type, i.e. cast this one to datetime as well.

Comment thread AI_ASSIST.md

TODO: What were you trying to solve? Paste the relevant SQL or schema fragment.

CREATE OR REPLACE VIEW vw_dim_zones AS

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

make sure to specify a schema as well so you don't write all your tables in the public schema that is potentially shared with others!

Comment thread verification_results.sql
GROUP BY d.borough
ORDER BY trip_count DESC;
SELECT
pickup_location_id,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

not wrong, but this just gives you the IDs, how would you create pairs of zone names instead?

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