RJ Softwares Interview Question

write down a query