Mphasis Interview Question

sql queries oops problems basic coding