Siemens Interview Question

Joins in SQL Bubble sort algorithm