TEKsystems interview question

Ruby Rails SQL queries