8000 GitHub - Israt1063/SQL-MySQL
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Israt1063/SQL-MySQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL-MySQL Practice

📚 About This Repository

This repository contains a comprehensive collection of SQL practice files and queries specifically for MySQL. The files include common operations such as creating databases, inserting data, performing joins, using constraints, and more. It’s designed to enhance your SQL skills by providing practical examples and solutions to everyday database tasks.

📂 Repository Structure

1. Basic SQL Operations

  • CreatingDatabase.sql: SQL script to create a new database.
  • DeleteDatabase.sql: SQL script to delete a database.
  • CreateTable.sql: SQL script to create a table.
  • InsertIntoDatabase.sql: SQL script to insert data into a table.
  • TablePrint.sql: SQL script to display the contents of a table.
  • Constraints.sql: SQL script for adding constraints to a table.

2. Querying Data

  • Select.sql: Basic SQL SELECT queries.
  • Where_Clause.sql: Using WHERE clause for filtering.
  • Order_by_clause.sql: Sorting data with ORDER BY.
  • Limit_&_As_Clause.sql: Using LIMIT and AS clauses in queries.
  • Aggregate_Function.sql: Using aggregate functions like COUNT, AVG, etc.
  • Group_by_clause.sql: Grouping data using GROUP BY.
  • Having_Clause.sql: Filtering grouped data with HAVING clause.

3. Joins and Relationships

  • Inner_Join.sql: Using INNER JOIN to combine tables.
  • Left_Join.sql: Using LEFT JOIN.
  • Right_Join.sql: Using RIGHT JOIN.
  • Full_Join.sql: Using FULL OUTER JOIN.
  • Left_Exclusive_Join.sql: Left exclusive join (for unmatched left side).
  • Right_Exclusive_Join.sql: Right exclusive join (for unmatched right side).
  • Self_Join.sql: Using SELF JOIN on a table.
  • Union.sql: Combining results using UNION.

4. Advanced SQL Features

  • SQL_Sub_Queries.sql: Writing subqueries for complex queries.
  • MySQL_Views.sql: Creating and managing views in MySQL.
  • Cascading_for_F_KEY.sql: Handling cascading updates/deletes for foreign keys.
  • Table_related_Queries.sql: Additional table-related queries.

5. Practice and Challenge Queries

  • practice_Question_1.sql: A set of practice questions.
  • practiceQuestion_2.sql: Another practice set.
  • practiceQuestion_3.sql: More challenging practice queries.
  • task_1.sql: Specific task-related SQL queries.

🔧 Technologies Used

  • MySQL: Relational database management system.
  • SQL: Structured Query Language.
  • Git/GitHub: Version control and collaboration.

🛠️ How to Use

  1. Clone this repository to your local machine: bash git clone https://github.com/Israt1063/SQL-MySQL.git

  2. Navigate to the specific SQL file you want to execute: bash cd SQL-MySQL

  3. To run any SQL file, use the following command in your MySQL environment: sql source filename.sql;

  4. Example: bash source 1.1_CreatingDatabase.sql;

✨ Future Improvements

  • Expand the repository with more advanced SQL topics such as stored procedures, triggers, and views.
  • Provide solutions for SQL-based interview questions.
  • Add performance optimization techniques and indexing examples.

👩‍💻 Author

Jekono project e database part smoothly integrate korar jonno, ei kichu steps follow korte paren: Database Select Kora: Prothome project-er requirement bujhe relational (MySQL, PostgreSQL) ba non-relational (MongoDB, Firebase) database choose korben. Schema Design: Database table ba collection design korben, jate information structured vabe thake. ORM/Query Builder Use Kora: Backend framework-er built-in ORM (Laravel Eloquent, Django ORM) ba query builder use korle coding easy hoy. Database Connectivity: Right credentials use kore database connect korben—environment file (.env) e credentials rakha valo practice. Migration & Seeding: Laravel, Django, Rails moto frameworks e migration & seeding system ache—jeta use kore database structure easily setup korte parben. Security & Optimization: SQL injection protection, indexing, caching—ei factors consider korben jate performance smooth thake.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0