This repository contains SQL mini-projects and challenges completed while learning SQL concepts.
Each file represents a different business scenario demonstrating practical database operations.
- Focus: Triggers, Transactions, and Rollbacks
- Features:
- Trigger for order deletions
- Stock management with TCL commands
2. MNC Database
- Focus: Joins, Views, Functions, Stored Procedures
- Features:
- Employee–Department relationship
- UNION vs UNION ALL
- Custom UDF (
FullName) - Stored Procedure for HR
- Focus: Sorting and Limiting Results
- Features:
- Product table
ORDER BYandLIMITfor top-priced products
- Focus: Joins, DISTINCT, WHERE, BETWEEN, NULL operations
- Features:
- Student–Course relationships
- Multiple join types
- Focus: Table modification and schema operations
- Features:
- ALTER, RENAME, TRUNCATE, DROP
Focus: Aggregate functions
Features:
- SUM, COUNT, AVG, MIN, MAX
- Rounding averages
- Revenue summarization
- MySQL Workbench 8.0 CE
- SQL Syntax: DDL, DML, DCL, TCL