Yardi Systems interview question

basic sql