{"id":15550791,"url":"https://github.com/munenecalvin/alx-backend-storage","last_synced_at":"2026-04-09T16:36:50.039Z","repository":{"id":160960667,"uuid":"635736690","full_name":"MuneneCalvin/alx-backend-storage","owner":"MuneneCalvin","description":"A collection of projects for learning data storage in backend development. || MySQL advanced | Advanced SQL","archived":false,"fork":false,"pushed_at":"2023-05-10T13:38:54.000Z","size":1195,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T11:50:48.266Z","etag":null,"topics":["back-end","database","mysql","redis","sql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MuneneCalvin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-03T10:54:30.000Z","updated_at":"2023-05-30T08:10:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"43f52287-2c70-4251-9dcc-40484c80361e","html_url":"https://github.com/MuneneCalvin/alx-backend-storage","commit_stats":{"total_commits":42,"total_committers":1,"mean_commits":42.0,"dds":0.0,"last_synced_commit":"ed13aa790b5915b4c69a4bb08dbe76ec6aa11e47"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuneneCalvin%2Falx-backend-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuneneCalvin%2Falx-backend-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuneneCalvin%2Falx-backend-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuneneCalvin%2Falx-backend-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MuneneCalvin","download_url":"https://codeload.github.com/MuneneCalvin/alx-backend-storage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126666,"owners_count":20727594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["back-end","database","mysql","redis","sql"],"created_at":"2024-10-02T14:01:16.679Z","updated_at":"2026-04-09T16:36:44.999Z","avatar_url":"https://github.com/MuneneCalvin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Curriculum \u003cbr\u003e\n**Short Specializations** \u003cbr\u003e\n\n# 0x00. MySQL advanced\n\n`Back-end` `SQL` `MySQL` `Databases`\n\n#### Concepts\n\n_For this project, look at these concepts:_\n\n* [Advanced SQL](https://www.intranet.alxswe.com/concepts/555)\n\n## Resources\n\n**Read or watch:**\n\n* [MySQL cheatsheet](https://www.devhints.io/mysql)\n* [MySQL Performance: How To Leverage MySQL Database Indexing](https://www.liquidweb.com/kb/mysql-optimization-how-to-leverage-mysql-database-indexing/)\n* [Stored Procedure](https://www.w3resource.com/mysql/mysql-procedure.php)\n* [Triggers](https://www.w3resource.com/mysql/mysql-triggers.php)\n* [Views](https://www.w3resource.com/mysql/mysql-views.php)\n* [Functions and Operators](https://dev.mysql.com/doc/refman/5.7/en/functions.html)\n* [Trigger Syntax and Examples](https://dev.mysql.com/doc/refman/5.7/en/trigger-syntax.html)\n* [CREATE TABLE Statement](https://dev.mysql.com/doc/refman/5.7/en/create-table.html)\n* [CREATE PROCEDURE and CREATE FUNCTION Statements](https://dev.mysql.com/doc/refman/5.7/en/create-procedure.html)\n* [CREATE INDEX Statement](https://dev.mysql.com/doc/refman/5.7/en/create-index.html)\n* [CREATE VIEW Statement](https://dev.mysql.com/doc/refman/5.7/en/create-view.html)\n\n## Requirement\n\n### General\n\n* Files executed on Ubuntu 18.04 LTS using `MySQL 5.7` (version 5.7.30)\n* Files must end with a new line\n* All SQL queries should have a comment just before (i.e. syntax above)\n* Files should start with comment describing tasks\n* All SQL keywords should be in uppercase (`SELECT`, `WHERE`...)\n* Mandatory `README.md` file\n* Length of files tested using `wc`\n\n## More Info\n\n### Comments for your SQL file:\n\n```sql\n$ cat my_script.sql\n-- 3 first students in the Batch ID=3\n-- because Batch 3 is the best\nSELECT id, name FROM students WHERE batch_id = 3 ORDER BY created_at DESC LIMIT 3;\n$\n```\n\n## Use \"container-on-demand\" to run MySQL\n\n* Ask for container `Ubuntu 18.04 - Python 3.7`\n* Connect via SSH\n* Or via the Web Terminal\n* In the container, start MySQL before playing with it\n\n```sql\n$ service mysql start\n* MySQL Community Server 5.7.30 is started\n$\n$ cat 0-list_databases.sql | mysql -uroot -p my_database\nEnter password:\nDatabase\ninformation_schema\nmysql\nperformance_schema\nsys\n$\n```\n\n**In the container, credentials are `root/root`**\n\n## How to import a SQL dump\n\n```sql\n$ echo \"CREATE DATABASE hbtn_0d_tvshows;\" | mysql -uroot -p\nEnter password:\n$ curl \"https://s3.amazonaws.com/intranet-projects-files/holbertonschool-higher-level_programming+/274/hbtn_0d_tvshows.sql\" -s | mysql -uroot -p hbtn_0d_tvshows\nEnter password:\n$ echo \"SELECT * FROM tv_genres\" | mysql -uroot -p hbtn_0d_tvshows\nEnter password:\nid name\n1 Drama\n2 Mystery\n3 Adventure\n4 Fantasy\n5 Comedy\n6 Crime\n7 Suspense\n8 Thriller\n$\n```\n\n## Finally...\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunenecalvin%2Falx-backend-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunenecalvin%2Falx-backend-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunenecalvin%2Falx-backend-storage/lists"}