Infosys interview question

How Binary search works? Few easy SQL and Java questions.