Coforge Interview Question

Mostly on sql