HARMAN Interview Question

write sql query