Ameex Interview Question

Sql queries like join,view,sequences and write a program for binary search,bubble sort,swap without third variable