Cartesian Self Join
All pairs from same table.
sql
1SELECT a.name AS student1, b.name AS student2
2FROM students a, students b
3WHERE a.id < b.id;
All pairs from same table.
1SELECT a.name AS student1, b.name AS student2
2FROM students a, students b
3WHERE a.id < b.id;