OpenText interview question

oops, sql