Ring Interview Question

basic sql queries and operations