Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bell-kevin/moviedatabase
movie Database Practice with SQL. Data from movies-genres-people.sql.
https://github.com/bell-kevin/moviedatabase
mariadb mariadb-database mariadb-mysql movie movie-database movies
Last synced: 19 days ago
JSON representation
movie Database Practice with SQL. Data from movies-genres-people.sql.
- Host: GitHub
- URL: https://github.com/bell-kevin/moviedatabase
- Owner: bell-kevin
- License: agpl-3.0
- Created: 2022-12-07T19:45:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T21:52:16.000Z (about 2 years ago)
- Last Synced: 2024-11-23T10:21:14.018Z (3 months ago)
- Topics: mariadb, mariadb-database, mariadb-mysql, movie, movie-database, movies
- Language: SQL
- Homepage:
- Size: 622 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# 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](https://github.com/bell-kevin/movies-genres-people.sql/blob/main/prof1.PNG)
Better way to do it:
SELECT
m.movie_title,
m.director,
m.year,
genre_title
FROMmovies AS m
INNER JOIN genres AS gON
m.genre_id = g.genre_id;
![correct](https://github.com/bell-kevin/movieDatabasePractice/blob/main/prof2.PNG)SELECT
m.movie_title,
m.director,
m.year,
genre_title
FROMmovies AS m
INNER JOIN genres AS gON
m.genre_id = g.genre_id
WHEREYEAR > 2006;
![p](https://github.com/bell-kevin/movieDatabasePractice/blob/main/prof3.PNG)SELECT
m.movie_title,
m.director,
m.year,
genre_title
FROM
movies AS m
INNER JOIN genres AS gON
m.genre_id = g.genre_id
WHEREYEAR > 2006
ORDER BYYEAR ASC;
![p](https://github.com/bell-kevin/movieDatabasePractice/blob/main/prof4.PNG)== 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](https://bellKevin.me) 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](https://GiveUpGitHub.org) campaign
from [the Software Freedom Conservancy](https://sfconservancy.org) 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 **[email protected]** 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](https://sfconservancy.org/img/GiveUpGitHub.png)