K2View interview question

write binary search algorithm some questions using sql, given some db tables and few questions on how to retrieve data