IDRASAcademic OS
SQL100% Active LaboratorySIMULATION

Database Hash Join vs Nested Loop Query Engine Simulator

Relational query execution engine comparing Grace Hash Join (In-memory Hash Table build phase + Probe stream phase) against O(M*N) Block Nested Loop Join.

SQL • VISUALIZATIONVisual SQL Relational JOIN Laboratory
SQL • RELATIONAL ALGEBRACartesian Product & Key Matching

Visual SQL Relational JOIN Laboratory

Executing SQL Query:
SELECT s.id, s.name, s.major, e.course, e.grade
FROM students s
INNER JOIN enrollments e
  ON s.id = e.student_id;
Left Table: students (s)
id (PK)namemajor
1AaravCS
2DiyaAI
3KabirData
4RiyaCyber
Right Table: enrollments (e)
student_id (FK)coursegrade
1CS301A
2CS301B+
2CS304A+
5CS305A
Relational Result Set (3 rows returned)Matched by s.id = e.student_id
s.ids.names.majore.coursee.grade
1AaravCSCS301A
2DiyaAICS301B+
2DiyaAICS304A+
Relational Join Invariant:

In INNER JOIN: Only rows with matching keys in BOTH tables are preserved. Any unmatched student (like Kabir or Riya) or unmatched enrollment (like Student 5) is completely omitted.

Want a step-by-step breakdown from our 4 AI Engineering Agents?
Mastery Standard: Complete all 3 tasks in the Lab Protocol to earn verified mastery credits.
Study Full Unit Notes →