+63 995 394 7258 / +63 917 132 5623 | marketing@axentra-global.com

SQL Mastery- Queries, Joins, and Optimization

Course Description


This 3-day course is designed to take learners from writing basic SQL queries to mastering complex joins, aggregations, subqueries, and performance tuning. Ideal for developers, analysts, and data engineers, this course emphasizes not just writing correct SQL, but writing efficient, optimized SQL that performs well on large datasets.


Duration: 3 Days

Format: Instructor-led, hands-on query labs, optimization walkthroughs, real-world data scenarios

Course Outline


🔹 Day 1: SQL Essentials & Complex Queries

Session 1: SQL Foundations


  • Database concepts: tables, rows, columns, keys
  • SELECT statements: filtering, sorting, aliases
  • WHERE, ORDER BY, and LIMIT clauses


Session 2: Aggregations and Grouping


  • COUNT, SUM, AVG, MIN, MAX
  • GROUP BY and HAVING clauses
  • NULL handling in aggregations


Session 3: Subqueries and Expressions


  • Scalar, correlated, and nested subqueries
  • CASE statements and conditional logic
  • String and date manipulation


Lab Activities:


  • Write queries to extract specific data from real-world tables
  • Group and summarize data using aggregates
  • Use subqueries to answer complex business questions


🔹 Day 2: Joins & Relational Thinking

Session 1: Understanding Joins


  • INNER, LEFT, RIGHT, FULL OUTER joins
  • Cross joins and self joins
  • Join conditions and aliases


Session 2: Multi-Table Queries


  • Joining 3 or more tables
  • Handling NULLs and unmatched records
  • Using joins with aggregations


Session 3: Set Operations and CTEs


  • UNION, INTERSECT, and EXCEPT
  • Common Table Expressions (CTEs)
  • Recursive queries (intro)


Lab Activities:


  • Write complex join queries across multiple tables
  • Solve business problems using LEFT and FULL joins
  • Use CTEs for better query readability and logic


🔹 Day 3: Query Optimization & Performance Tuning

Session 1: Indexes and Execution Plans


  • How indexes work
  • Reading and interpreting query plans
  • Choosing the right index for the query


Session 2: Optimizing Queries


  • Identifying and fixing slow queries
  • Avoiding common performance pitfalls (e.g., SELECT *)
  • Using EXPLAIN/ANALYZE to troubleshoot


Session 3: Advanced Techniques and Best Practices


  • Window functions (ROW_NUMBER, RANK, LEAD/LAG)
  • Materialized views and temporary tables
  • Writing clean, maintainable SQL code


Lab Activities:


  • Analyze and optimize slow queries using indexes
  • Use window functions to calculate running totals and rankings
  • Refactor complex queries for performance and clarity


REGISTER NOW

Learning Experience Survey

Start Your Learning Journey Today

Advance your career with industry-leading IT training and certification programs from Axentra Global Inc. Browse our courses, join our upcoming webinars, or contact our training advisors to find the right learning path for you.

"Empowering Innovation, Enabling Growth"

Axentra Global Inc. is a leading provider of IT training, professional certification courses, corporate learning solutions, and software development services in the Philippines. We help individuals, teams, and organizations build in-demand technology skills through instructor-led training, hands-on workshops, and globally recognized certification programs.

| Contact Us

+6399 5394 7258 / +63 917 132 5623 (Viber/WhatsApp)

marketing@axentra-global.com

1702 High Street South Corporate Plaza Tower 26th Street, Bonifacio Global City

Design & Developed By Axentra Global Inc.

© 2026 Axentra Global Inc. All Rights Reserved.