Pyramid Consulting Interview Question

simple sql queries