This project demonstrates how to execute SQL queries (basic, intermediate, and advanced) in Python to interact with a MySQL database. The project also includes visualizations of the retrieved data wherever applicable.
- Execute basic, intermediate, and advanced SQL queries in Python
- Fetch data from a MySQL database
- Visualize data using Python libraries
- Python 3.x
- MySQL Server
- MySQL Connector for Python (
mysql-connector-python
) - Visualization Libraries (
Matplotlib
,Seaborn
, etc.)
- Clone the repository:
https://github.com/Amank04/Python_-_SQL.git
- Install the required Python packages:
pip install -r requirements.txt
- Set up the MySQL database:
- Update MySQL connection details in the script (host, user, password, database).
- Run the Python script:
python 01_Basics.ipynb
python 02_Intermediate.ipynb
python 01_Advanced.ipynb
- View query results and visualizations as per the script.
- Contributions are welcome! Feel free to open an issue or submit a pull request.