{"id":23200517,"url":"https://github.com/bayunova28/database_system","last_synced_at":"2025-04-05T09:24:52.655Z","repository":{"id":157263966,"uuid":"443129711","full_name":"Bayunova28/Database_System","owner":"Bayunova28","description":"This repository contains about my weekly projects from database system course in my college","archived":false,"fork":false,"pushed_at":"2022-05-29T14:03:51.000Z","size":215,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T20:42:21.519Z","etag":null,"topics":["database","mariadb","mysql","phpmyadmin"],"latest_commit_sha":null,"homepage":"","language":null,"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/Bayunova28.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":"2021-12-30T16:35:34.000Z","updated_at":"2022-05-11T13:43:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"987ebff2-9e75-4cef-9754-e062d84a212c","html_url":"https://github.com/Bayunova28/Database_System","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayunova28%2FDatabase_System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayunova28%2FDatabase_System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayunova28%2FDatabase_System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayunova28%2FDatabase_System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bayunova28","download_url":"https://codeload.github.com/Bayunova28/Database_System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247314021,"owners_count":20918742,"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":["database","mariadb","mysql","phpmyadmin"],"created_at":"2024-12-18T15:11:35.163Z","updated_at":"2025-04-05T09:24:52.634Z","avatar_url":"https://github.com/Bayunova28.png","language":null,"readme":"# Database System\n\u003cimg src=\"https://github.com/Bayunova28/Database_System/blob/main/database-blue.png\" height=\"450\" width=\"1000\"\u003e\n\u003cp align=\"justify\"\u003eA database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database \nmanagement system (DBMS). Together, the data and the DBMS, along with the applications that are associated with them, are referred to as a database system, often shortened to just \ndatabase.\u003cp\u003e\n\u003cp align=\"justify\"\u003eData within the most common types of databases in operation today is typically modeled in rows and columns in a series of tables to make processing and data querying efficient. \nThe data can then be easily accessed, managed, modified, updated, controlled, and organized. Most databases use structured query language (SQL) for writing and querying data.\u003cp\u003e\n\n# Documentation\n### Getting Started\n```mysql\n# Create database\nCREATE DATABASE database_name; \n\n# Show all database\nSHOW DATABASES;\n\n# Accessing database\nSHOW DATABASES; \n\n# Delete database\nDROP DATABASE database_name; \n\n# View table\nSHOW TABLES;\n\n# View table structure\nDESC table_name;\n\n# Delete table\nDROP TABLE table_name;\n```\n### Alter Table\n```mysql\n# Alter field name or column\nALTER TABLE table_name CHANGE old_field_name current_field_name data_type(size); \n\n# Alter data type\nALTER TABLE table_name MODIFY field_name current_data_type(size);\n\n# Add field or column\nALTER TABLE table_name ADD current_field_name data_type(size);\n\n# Delete field or column\nALTER TABLE table_name DROP COLUMN field_name;\n```\n\n### Data Manipulation Language\n```mysql\n# Insert table\nINSERT INTO field_name VALUES(text1, text2, …, text_n); \n\n# Select table\nSELECT * FROM table_name;\n\n# Update table\nUPDATE table_name SET field_name = 'current_data' WHERE condition;\n\n# Delete table\nDELETE FROM table_name WHERE condition; \n```\n\n### Single Row Function\n```mysql\n# Sorting data (ascending)\nSELECT * FROM table_name ORDER BY key_field_name ASC;\n\n# Sorting data (descending)\nSELECT * FROM table_name ORDER BY key_field_name DESC;\n\n# Between operator\nSELECT * FROM table_name WHERE clause_field_name BETWEEN 'clause_1' And 'clause_2'; \n\n# IN operator\nSELECT field_name FROM table_name WHERE adapter_field_name IN ('text_1','text_2'); \n\n# LIKE operator\nSELECT * FROM table_name WHERE field_name LIKE '%Key'; \n```\n\n### Aggregation Function\n\n|    Aggregate    |           Description       \n| ---------- | ------------------------------- | \n| Count     | Counting of data            | \n| Sum      | Addition of data      | \n| Avg     | Finding the Average |\n| Max     | Looking for maximum value |\n| Min     | Looking for minimum value |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbayunova28%2Fdatabase_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbayunova28%2Fdatabase_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbayunova28%2Fdatabase_system/lists"}