AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Two open-source engines side by side: first setup, tables that refuse bad rows and questions across tables

Set up PostgreSQL and MySQL and learn where they really differ, design tables whose types and rules stop bad data at the door, and write the multi-table queries that real, messy data needs without double counting or losing rows.

PostgreSQL and MySQL run a large share of the world's applications. They speak nearly the same SQL, but they differ in ways that matter the day you install them, design a schema or move from one to the other. And most of the trouble in real applications comes from two places: data that should never have been accepted, and queries that look right but count some rows twice or drop others.

This course follows the database work of a clinic-booking start-up. The SQL runs in your browser on SQLite, which shares the core ideas with PostgreSQL and MySQL; where the two differ, the lesson shows their own syntax next to it. Check each product's documentation for exact details. All names and figures are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

Take "PostgreSQL and MySQL in practice" first if tables, keys and basic SQL are new to you.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min 🔒 AiTeky Pass Installing PostgreSQL and MySQL and the differences that matter Start both databases in containers and connect with their own clients, see where their settings and data live, compare the differences that change real decisions (storage layout, defaults, identifiers, auto-increment, upserts, JSON), and measure why a random primary key slows MySQL inserts.
  2. 02 30 min 🔒 AiTeky Pass Data types, constraints and schema design for real applications Store money, times and statuses in types that cannot drift, add NOT NULL, UNIQUE, CHECK and foreign-key constraints so the database refuses bad bookings itself, prevent double-booking a doctor's slot with one rule, and split repeated data into its own table.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 35 min 🔒 AiTeky Pass On the job: joins, subqueries and CTEs revisited on realistic data Answer a real revenue question across doctors, bookings and payments without the classic traps (an inner join that drops doctors with no bookings, a join to many payments that counts revenue twice, NOT IN with a NULL that returns nothing), choose between joins, EXISTS subqueries and CTEs, and reconcile the result before anyone sees it.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in