Processing data: Ruby or SQL?

SQL