Samyak Software Interview Question

SQL join queries