Rialtes interview question

SQL Business scenarios Programming logic