title: When should I use C++ instead of SQL?
body: <p>I am a C++ programmer who occasionally uses MySQL to work with databases, but my SQL knowledge is rather limited. However I am surely willing to change that.</p>
  
  <p>At the moment I am trying to do analysis(!) on the data I have in my database solely with SQL queries. But I am about to give up, and instead import the data to C++ and do the analysis with C++ code.</p>
  
  <p>I have discussed this with my colleagues, and they also push me to use C++, saying that SQL is not meant for complex analysis but mainly for importing (from the existing tables) and exporting (to new tables) data, and a little bit more such as merging data to - e.g. - joined tables.</p>
  
  <p>Can somebody help me drawing a line? So I know when to switch to C++? Of course performance is also an issue.</p>
  
  <p>What are indications that things get to complex in SQL? Or maybe I just take the wrong approach with designing the queries. Then where can I find tutorials, books, ... to take a better approach?</p>
  
  <p>I hope this is not too vague. I am really a bit lost.</p>