SQLAlchemy Mastery: Database Interaction & ORM in Python

Master the art of database interaction with our comprehensive SQLAlchemy training program. Learn from industry experts as you delve into core concepts and advanced features of SQLAlchemy. Gain practical skills in managing databases efficiently using both Core and ORM techniques. Enroll now to elevate your Python programming expertise.

Face-to-Face Oct 29, 2025 9:00 AM - 5:00 PM Mohammad Mehdi Lotfinejad
intermediate
SQLAlchemy Mastery: Database Interaction & ORM in Python
We price match

Public Pricing

MYR 1750

Corporate Pricing

Pax:

Training Fees: MYR 6500/day
Total Fees: MYR 6500 ++

Training Provider Pricing

Pax:

Training Fees: MYR 2800
Material Fees: MYR 600
Total Fees: MYR 3400 ++

Features

1 day
7 modules
9 intakes
Full life-time access
English

Subsidies

HRDC Claimable logo

What you'll learn

  • Master performing basic SQL operations: INSERT, SELECT, UPDATE, DELETE.
  • Manage connections and sessions effectively.
  • Learn how to create and manage tables using SQLAlchemy Core.
  • Establish relationships between tables using SQLAlchemy ORM.
  • Understand the differences between SQLAlchemy Core and ORM.
  • Define ORM models and map classes to database tables.
  • Construct complex queries with filtering, ordering, grouping.
  • Implement database migrations and schema management using Alembic.

Why should you attend?

SQLAlchemy is a powerful library in Python that facilitates database interaction and object-relational mapping (ORM). This course provides an in-depth exploration of SQLAlchemy, starting with an introduction to its core components and ORM capabilities. Participants will learn how to install and set up SQLAlchemy, ensuring they have the necessary environment to follow along with the course material. The course delves into database interaction using SQLAlchemy Core, covering the basics of SQL queries, table creation and management, and performing essential SQL operations such as INSERT, SELECT, UPDATE, and DELETE. Following this, learners will transition to working with SQLAlchemy ORM, where they will define ORM models, map classes to database tables, and establish relationships between tables. Managing database sessions and transactions is another critical aspect covered in this course. Participants will gain insights into managing connections and sessions effectively, handling transactions through commit, rollback, and savepoint mechanisms. The course also emphasizes querying data using ORM techniques, handling relationships through joins and loading strategies, and constructing complex queries with filtering, ordering, and grouping. Advanced ORM features are explored to optimize performance further. Topics include defining inheritance in ORM models, optimizing queries with indexes, efficient pagination of large datasets, and implementing connection pooling and scaling strategies. Finally, the course addresses database migrations and schema management using Alembic. Learners will automate schema changes and handle version control for database schemas efficiently.

Course Syllabus

Day 1
Short Break
15 mins
Short Break
15 mins
Recap and Q&A
15 mins
Lunch
1 hour
Short Break
15 mins
Short Break
15 mins
Short Break
15 mins
Recap and Q&A
15 mins
End of Day 1

Instructor

Loading...
Mohammad Mehdi Lotfinejad Certified Data Science Trainer and Data Engineer Teaching

Mohammad Mehdi Lotfinejad is an accomplished Chief Data Officer and certified HRDF trainer with over 15 years of experience in computer science instruction and professional data science/engineering training. He combines extensive academic credentials with deep industry expertise, holding a PhD in Computer Science from Universiti Malaya and Harvard Business School certification in Business Analytics. His comprehensive technical background spans Apache Spark, MySQL, PostgreSQL, MongoDB, Snowflake, Redshift, Apache Airflow, API development, microservices, and Amazon Web Services. Currently serving as Chief Data and Knowledge Officer at Magna.ai, a Florida-based lawtech company, Lotfinejad leads the development of AI-driven legal case analysis systems, architecting graph databases, data warehouses, and workflow engines while ensuring compliance with legal standards. His concurrent role as Senior Data Engineer at AXIATA Digital Advertising (ADA) in Malaysia demonstrates his ability to manage complex, multi-regional data operations across Southeast Asian markets, designing automated pipelines using AWS RedShift, Snowflake, and Google BigQuery. His training expertise was honed during his tenure as Lead Senior Data Scientist Professional Trainer at The Center of Applied Data Science, where he designed and delivered comprehensive training programs for major corporations including CIMB, PETRONAS, SHELL, and TNB. He successfully led teams of data scientists and engineers in developing cutting-edge curriculum and migrating legacy systems to modern data management solutions. His academic foundation includes faculty positions at multiple universities where he taught computer architecture, programming languages, software engineering, and data structures while publishing numerous high-impact research papers and books. Lotfinejad's unique combination of technical leadership, educational expertise, and industry experience makes him exceptionally qualified to deliver sophisticated software training programs. His proven track record of leading cross-functional teams, developing enterprise-level solutions, and translating complex technical concepts into accessible learning materials positions him as an ideal trainer for organizations seeking to advance their technical capabilities in data science, engineering, and modern software development practices.'

8 Students
77 Courses
18 Years

Minimum Qualification

undergraduate

Target Audience

entry level
engineers

Methodologies

lecture
slides
labs
q&A

Instructor Reviews

Mohammad Mehdi Lotfinejad Certified Data Science Trainer and Data Engineer
review avatar
Michael Ogheneme
1 year ago
1 year ago

Mehdi and I worked on several projects with company such as Petronas , Shell and CIMB Regional ETC. I must say Mehdi's training was highly appreciated by our clients as he was able to exhibit in full display his vast knowledge as a Data professional. I would highly recommend him to anyone looking for a top tier training expert.

review avatar
Amin Jula
1 year ago
1 year ago

Not only knowledgeable but also having hands dirty on what he knows Friendly and building networks quickly.

review avatar
Kennedy Okonkwo
1 year ago
1 year ago

I had the pleasure of working with Mehdi together on some high-level initiatives such as the Petronas data scientist program and Shell's project to become a data-driven organization. During these projects, Mehdi received numerous accolades for his ability to share his knowledge and mentor up-and-coming data scientists. Based on our shared experiences, I have no hesitation in recommending Mehdi for any project or position he may be considered for.

FAQs

Why should you attend?

SQLAlchemy is a powerful library in Python that facilitates database interaction and object-relational mapping (ORM). This course provides an in-depth exploration of SQLAlchemy, starting with an introduction to its core components and ORM capabilities. Participants will learn how to install and set up SQLAlchemy, ensuring they have the necessary environment to follow along with the course material. The course delves into database interaction using SQLAlchemy Core, covering the basics of SQL queries, table creation and management, and performing essential SQL operations such as INSERT, SELECT, UPDATE, and DELETE. Following this, learners will transition to working with SQLAlchemy ORM, where they will define ORM models, map classes to database tables, and establish relationships between tables. Managing database sessions and transactions is another critical aspect covered in this course. Participants will gain insights into managing connections and sessions effectively, handling transactions through commit, rollback, and savepoint mechanisms. The course also emphasizes querying data using ORM techniques, handling relationships through joins and loading strategies, and constructing complex queries with filtering, ordering, and grouping. Advanced ORM features are explored to optimize performance further. Topics include defining inheritance in ORM models, optimizing queries with indexes, efficient pagination of large datasets, and implementing connection pooling and scaling strategies. Finally, the course addresses database migrations and schema management using Alembic. Learners will automate schema changes and handle version control for database schemas efficiently.

What you'll learn

  • Master performing basic SQL operations: INSERT, SELECT, UPDATE, DELETE.
  • Manage connections and sessions effectively.
  • Learn how to create and manage tables using SQLAlchemy Core.
  • Establish relationships between tables using SQLAlchemy ORM.
  • Understand the differences between SQLAlchemy Core and ORM.
  • Define ORM models and map classes to database tables.
  • Construct complex queries with filtering, ordering, grouping.
  • Implement database migrations and schema management using Alembic.

Course Syllabus

Day 1
Short Break
15 mins
Short Break
15 mins
Recap and Q&A
15 mins
Lunch
1 hour
Short Break
15 mins
Short Break
15 mins
Short Break
15 mins
Recap and Q&A
15 mins
End of Day 1

Instructor Reviews

Mohammad Mehdi Lotfinejad Certified Data Science Trainer and Data Engineer
review avatar
Michael Ogheneme
1 year ago
1 year ago

Mehdi and I worked on several projects with company such as Petronas , Shell and CIMB Regional ETC. I must say Mehdi's training was highly appreciated by our clients as he was able to exhibit in full display his vast knowledge as a Data professional. I would highly recommend him to anyone looking for a top tier training expert.

review avatar
Amin Jula
1 year ago
1 year ago

Not only knowledgeable but also having hands dirty on what he knows Friendly and building networks quickly.

review avatar
Kennedy Okonkwo
1 year ago
1 year ago

I had the pleasure of working with Mehdi together on some high-level initiatives such as the Petronas data scientist program and Shell's project to become a data-driven organization. During these projects, Mehdi received numerous accolades for his ability to share his knowledge and mentor up-and-coming data scientists. Based on our shared experiences, I have no hesitation in recommending Mehdi for any project or position he may be considered for.

We price match

Public Pricing

MYR 1750

Corporate Pricing

Pax:

Training Fees: MYR 6500/day
Total Fees: MYR 6500 ++

Training Provider Pricing

Pax:

Training Fees: MYR 2800
Material Fees: MYR 600
Total Fees: MYR 3400 ++

Features

1 day
7 modules
9 intakes
Full life-time access
English

Subsidies

HRDC Claimable logo

Instructor

Loading...
Mohammad Mehdi Lotfinejad Certified Data Science Trainer and Data Engineer Teaching

Mohammad Mehdi Lotfinejad is an accomplished Chief Data Officer and certified HRDF trainer with over 15 years of experience in computer science instruction and professional data science/engineering training. He combines extensive academic credentials with deep industry expertise, holding a PhD in Computer Science from Universiti Malaya and Harvard Business School certification in Business Analytics. His comprehensive technical background spans Apache Spark, MySQL, PostgreSQL, MongoDB, Snowflake, Redshift, Apache Airflow, API development, microservices, and Amazon Web Services. Currently serving as Chief Data and Knowledge Officer at Magna.ai, a Florida-based lawtech company, Lotfinejad leads the development of AI-driven legal case analysis systems, architecting graph databases, data warehouses, and workflow engines while ensuring compliance with legal standards. His concurrent role as Senior Data Engineer at AXIATA Digital Advertising (ADA) in Malaysia demonstrates his ability to manage complex, multi-regional data operations across Southeast Asian markets, designing automated pipelines using AWS RedShift, Snowflake, and Google BigQuery. His training expertise was honed during his tenure as Lead Senior Data Scientist Professional Trainer at The Center of Applied Data Science, where he designed and delivered comprehensive training programs for major corporations including CIMB, PETRONAS, SHELL, and TNB. He successfully led teams of data scientists and engineers in developing cutting-edge curriculum and migrating legacy systems to modern data management solutions. His academic foundation includes faculty positions at multiple universities where he taught computer architecture, programming languages, software engineering, and data structures while publishing numerous high-impact research papers and books. Lotfinejad's unique combination of technical leadership, educational expertise, and industry experience makes him exceptionally qualified to deliver sophisticated software training programs. His proven track record of leading cross-functional teams, developing enterprise-level solutions, and translating complex technical concepts into accessible learning materials positions him as an ideal trainer for organizations seeking to advance their technical capabilities in data science, engineering, and modern software development practices.'

8 Students
77 Courses
18 Years

Minimum Qualification

undergraduate

Target Audience

entry level
engineers

Methodologies

lecture
slides
labs
q&A

FAQs

Close menu