Skip to content
On this page

Collection

SQL and databases Experience it live.

Tables, keys, joins, groups and subqueries you can touch: how a database really reads.

7 VisuApps
See the apps

App catalogue

Apps

All apps. Free in your browser.

Web shop join: cook the soup, count the baskets

Web shop join: cook the soup, count the baskets

Joins and groups on the practice database prodat: tools join products first forms all 9 combinations, on boils them down to 3 (with ambiguous column name and comma + where). customers × orders gives 23 · 184 = 4232 rows, 184 after on. group by order_id turns them into 80 baskets, sum(quantity) counts the items, having keeps 45. Plus: an order as a line or as a basket, monster table versus separate tables, deletion and foreign keys.

Computer scienceTry it
Subquery workshop: NULL, aliases, union, subquery

Subquery workshop: NULL, aliases, union, subquery

Five flashlights on the practice database prodat: 17 of 46 deliveries without a value, sum(days)/count(*) = 12 versus avg(days) = 20.55; table aliases c and o that vanish after the statement, and the same statement with join and on; union as the set union {1, 2, 3} ∪ {1, 3, 5} and on X and Y (7 values, union all 10); the customers from Hamburg as a subquery in where (2 customer IDs, 4 order lines, equal to the join) and a subquery in from named T.

Computer scienceTry it

Collections

More collections. Curated by us.

New ideas for your teaching.

Want to use these apps in your courses? Let’s find out what works for you.

Tell us what this is about

One form, three matters. We answer personally.

What is this about?

We show heyprof on your own material. Tell us what you teach and we will prepare the conversation around it.

Your details

Where do you teach? (optional)

What comes back

Only when something new for your subject is ready. You will first get a mail with a confirmation link — without that click we do not add you, and we discard the address after a few days. Every later mail carries an unsubscribe link.

What happens next

  • A confirmation to your address, right away.
  • An answer from us, usually within two working days.
  • No phone call, nothing passed on to third parties.

We use your details only to answer you. Privacy policy