Sikau

Learn Project: The café’s data

One café's orders through SQL, PostgreSQL, MongoDB and Prisma.

A combined module for after Databases, PostgreSQL, MongoDB and Prisma: design a constrained schema, write a real sales report with joins and window functions, add an index, a view and a transaction, model the same orders as documents with pipelines, then build the app's typed data layer — all in one place.

Intermediate · 5 lessons · about 4 hours · free

Start Project: The café’s data free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: The café's data

One set of orders through SQL, PostgreSQL, MongoDB and Prisma.

  1. Day 1Design the schemaFour related tables with keys, defaults and constraints that protect the data.40 min
  2. Day 2The sales reportJOIN three tables, GROUP BY with HAVING, and rank with a window function.40 min
  3. Day 3Index, view and transactionSpeed up lookups, save the report as a view, and place an order atomically.40 min
  4. Day 4The same orders as documentsEmbedded documents, updates with $set/$push, and aggregation pipelines.40 min
  5. Day 5Final: the app's data layerTyped queries with relations, an interactive transaction and a spending report in Prisma.50 min

Before you start

These courses make Project: The café’s data easier:

See all courses

Built with ❤️ by dibe.sh