Module 1: Introduction to SQL
- What is SQL?
- SQL Basics: DDL, DML, DQL, DCL
- Understanding Tables and Schemas
- Writing Simple Queries: SELECT, FROM, WHERE
Module 2: Querying Data
- Filtering Data with WHERE and LIKE
- Using Aggregate Functions: SUM, AVG, COUNT, MIN, MAX
- Grouping Data with GROUP BY
Module 3: Working with Joins
- Introduction to Joins: INNER JOIN, LEFT JOIN, RIGHT JOIN
- Combining Tables with Joins
- Understanding Cartesian Products and Avoiding Them
Module 4: Case Statements and Conditional Logic
- Introduction to CASE Statements
- Applying Conditional Aggregates with CASE
- Practical: Creating a Sales Report by Month
Module 5: Data Filtering and Optimization
- Filtering Data with DISTINCT
- Optimizing Queries for Performance
- Understanding Indexes and Their Role in Filtering
Module 6: Advanced Querying Techniques
- Subqueries and Nested Queries
- Common Table Expressions (CTEs)
- Introduction to Window Functions
Module 7: Debugging and Best Practices
- Debugging SQL Errors: Common Syntax Issues
- Writing Clean and Maintainable Queries
- SQL Best Practices: Avoiding Common Pitfalls
Module 8: Project: Building a Reporting System
- Designing a Schema for the Project
- Writing Queries for Reports
- Creating and Optimizing Dashboards with SQL Integration
Module 9: Functions vs. Stored Procedures
- What are Functions and Stored Procedures?
- Key Differences with Examples
- Writing and Using Functions in SQL
- Writing and Executing Stored Procedures
- Practical Exercise: Function to calculate tax and procedure to update salary.
Course Duration:
- 15 Days: Theory and Hands-On Sessions
- 10 Days: Project Work