IBM interview question

Oops concept, basically sql questions