OurSQL
Behind the query

From query to clarity.

See how tables connect and rows change through a query. Explore with isolated demo data, then put it into practice.

Put it into practice
01 / RELATIONSHIPS

How tables connect

People (left)

Teams (right)

Matched pairLeft onlyRight only

Result

Each matching pair produces a row. NULL does not equal NULL with =. An unmatched side is filled with NULL; duplicate matches are retained.

Example SQL needs the demo schema below; it does not use your school database.

Demo schema — copy and run in a practice database if desired