Which is better for data analysis: A scripting language like R/Python, or SQL?

Huh? I use Python to connect to the databases where I work, and then create graphs, dump stuff in Excel, etc through it. Data that does not fit into memory has to live in a database, and I must do my joins there