Skip to content

movie Database Practice with SQL. Data from movies-genres-people.sql.

License

Notifications You must be signed in to change notification settings

bell-kevin/movieDatabase

movieDatabasePractice

Data from movies-genres-people.sql

Based off of video: https://piped.tokhmi.xyz/watch?v=l1Nk8irDJu4

Bad practice, but it gets the job done:

SELECT m.movie_title, m.director, m.year, genre_title FROM movies AS m, genres AS g WHERE m.genre_id = g.genre_id;

bad-form

Better way to do it:

SELECT

m.movie_title,

m.director,

m.year,

genre_title

FROM

movies AS m

INNER JOIN genres AS g

ON

m.genre_id = g.genre_id;

correct

SELECT

m.movie_title,
m.director,
m.year,
genre_title

FROM

movies AS m

INNER JOIN genres AS g

ON

m.genre_id = g.genre_id

WHERE

YEAR > 2006;

p

SELECT

m.movie_title,
m.director,
m.year,
genre_title

FROM movies AS m

INNER JOIN genres AS g

ON

m.genre_id = g.genre_id

WHERE

YEAR > 2006

ORDER BY

YEAR ASC;

p

== We're Using GitHub Under Protest ==

This project is currently hosted on GitHub. This is not ideal; GitHub is a proprietary, trade-secret system that is not Free and Open Souce Software (FOSS). We are deeply concerned about using a proprietary system like GitHub to develop our FOSS project. I have a website where the project contributors are actively discussing how we can move away from GitHub in the long term. We urge you to read about the Give up GitHub campaign from the Software Freedom Conservancy to understand some of the reasons why GitHub is not a good place to host FOSS projects.

If you are a contributor who personally has already quit using GitHub, please email me at bellKevin@pm.me for how to send us contributions without using GitHub directly.

Any use of this project's code by GitHub Copilot, past or present, is done without our permission. We do not consent to GitHub's use of this project's code in Copilot.

Logo of the GiveUpGitHub campaign

About

movie Database Practice with SQL. Data from movies-genres-people.sql.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages