Frage im Vorstellungsgespräch bei IBM

Two questions: 1) Simple SQL question 2) Approximation problem