IBM interview question

database conditional queries