Processing data: Ruby or SQL?

Ruby