Code24Lab
Databases & SQL Intermediate

MySQL in Practice: Joins, Views, Stored Routines & Triggers

Join tables the MySQL way, wrap queries in views, write stored procedures, functions and triggers, keep data safe with transactions and design a clean schema, with every answer checked as you go.

20 lessons 20 labs Certificate

  • One-time payment
  • Instant access right after payment
  • Secure checkout with Stripe

About this course

In this intermediate MySQL course you work on a fictional tea shop's database. Every lesson is a lab: you read real MySQL code and work out exactly what it returns or changes, and each answer is checked as you go. You join tables with INNER, LEFT and self joins and avoid join fan-out, save queries as views and update them safely with WITH CHECK OPTION, and write stored procedures with IN, OUT and INOUT parameters, IF/CASE logic, loops, cursors and SIGNAL. You then add stored functions and BEFORE and AFTER triggers, protect changes with transactions and savepoints, index joins and normalize a schema with foreign key actions and finish with a capstone and a certificate exam.

Lessons

  1. INNER JOIN, Aliases and USING in MySQLLabFree
  2. LEFT JOIN, Filters in ON and the Anti-JoinLab Locked
  3. Joining Three Tables: Lines, Products and OrdersLab Locked
  4. Self Joins: Employees and Their ManagersLab Locked
  5. Join Fan-Out: Why Totals Grow After a JoinLab Locked
  6. Views: Saving a Join Under a NameLab Locked
  7. Updatable Views and WITH CHECK OPTIONLab Locked
  8. Stored Procedures with IN ParametersLab Locked
  9. OUT and INOUT Parameters, SELECT ... INTOLab Locked
  10. IF, ELSEIF and CASE in ProceduresLab Locked
  11. Loops in Procedures: WHILE, REPEAT and LOOPLab Locked
  12. Stored Functions: DETERMINISTIC, RETURNS and RoundingLab Locked
  13. Cursors and the NOT FOUND HandlerLab Locked
  14. SIGNAL, SQLSTATE 45000 and Error HandlersLab Locked
  15. BEFORE INSERT Triggers: Changing NEWLab Locked
  16. AFTER Triggers: Stock Updates and AlertsLab Locked
  17. Transactions, COMMIT, ROLLBACK and SavepointsLab Locked
  18. Indexes for Joins and Foreign KeysLab Locked
  19. Schema Design: Normalization and Foreign Key ActionsLab Locked
  20. Capstone: Procedure, Trigger and View in One Order RunLab Locked